| java.lang.Object org.netbeans.modules.vmd.api.model.Presenter org.netbeans.modules.vmd.api.model.DynamicPresenter org.netbeans.modules.vmd.api.model.presenters.InfoPresenter
InfoPresenter | final public class InfoPresenter extends DynamicPresenter (Code) | | The info presenter is used for resolving display name, icon and editable name.
The values are resolved by Resolver and cached by the presenter.
When a document/component is changed according to the specified DesignEventFilter, the cache is cleared.
author: David Kaspar |
Inner Class :public enum NameType | |
Inner Class :public enum IconType | |
Inner Class :public interface Resolver | |
create | public static InfoPresenter create(Resolver resolver)(Code) | | Creates an info presenter for a specified resolver.
Parameters: resolver - the resolver of the info presenter the info presenter |
getDisplayName | public String getDisplayName(NameType nameType)(Code) | | Returns a display name for a specific component and name type.
Parameters: nameType - the name type the display name |
getEditableName | public String getEditableName()(Code) | | Returns an initial name usually used in an in-place editor.
the initial name; if null, then the in-place editor is not allowed |
getIcon | public Image getIcon(IconType iconType)(Code) | | Returns an icon.
Parameters: iconType - the icon type the icon |
isEditable | public boolean isEditable()(Code) | | Returns whether a name is editable.
true, if editable |
setEditableName | public void setEditableName(String enteredName)(Code) | | Sets a new name usually entered by an in-place editor.
Parameters: enteredName - the edited name |
|
|