本文整理匯總了Java中ini.trakem2.display.Display.updateTitle方法的典型用法代碼示例。如果您正苦於以下問題:Java Display.updateTitle方法的具體用法?Java Display.updateTitle怎麽用?Java Display.updateTitle使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ini.trakem2.display.Display
的用法示例。
在下文中一共展示了Display.updateTitle方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setTitle
import ini.trakem2.display.Display; //導入方法依賴的package包/類
public void setTitle(String title) {
if (null == title || title.equals(this.title)) return;
this.title = title;
updateInDatabase("title");
if (object instanceof Layer) { // haha, bad design ... the DBObject should have a get/setTitle method pair
Display.updateTitle((Layer)object);
}
}
示例2: updateTitle
import ini.trakem2.display.Display; //導入方法依賴的package包/類
private void updateTitle(final String old_type) {
if (this.object instanceof String && this.object.equals(old_type)) this.object = template.getType(); // Set the object to be the template type (a String) unless this thing had a name given to it, which is stored also in the object pointer.
else if (this.object instanceof Displayable) {
Displayable d = (Displayable)this.object;
Display.updateTitle(d.getLayer(), d);
}
if (null != al_children) {
synchronized (al_children) {
for (ProjectThing child : al_children) {
child.updateTitle(old_type);
}
}
}
}
示例3: saveAs
import ini.trakem2.display.Display; //導入方法依賴的package包/類
/** The saveAs called from menus via saveTask. */
@Override
public String saveAs(Project project, XMLOptions options) {
String path = super.saveAs(project, null, options);
if (null != path) {
// update the xml path to point to the new one
this.project_file_path = path;
Utils.log2("After saveAs, new xml path is: " + path);
touched_mipmaps.clear();
}
ControlWindow.updateTitle(project);
Display.updateTitle(project);
return path;
}