本文整理汇总了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;
}