|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdatechooser.view.appearance.AppearancesList
public class AppearancesList
Bean's appearances list. It has some hardcoded views, allows add new views.
Список профилей внешнего вида компонента.
Имеет ряд жеско закодированных профилей, позволяет добавлять новые.
CellAppearance,
Serialized Form| Field Summary | |
|---|---|
static java.lang.String |
CUSTOM
Editable view. |
static java.lang.String |
DEFAULT
Default appearance. |
| Constructor Summary | |
|---|---|
AppearancesList()
Default constructor creates only hardcoded profiles and one custom view. |
|
AppearancesList(boolean autoInit)
Constructor creates hardcoded profiles and allows control editable view creation. |
|
AppearancesList(java.lang.String current,
ViewAppearance... cellViews)
This constructor is used for automatic initialization code. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
|
java.lang.Object |
clone()
Deep clone. |
ViewAppearance |
getAppearance(java.lang.String name)
Get view with specified name. |
ViewAppearance |
getCurrent()
Get current view. |
ViewAppearance |
getDefaultAppearance()
Get default view. |
java.lang.Iterable<java.lang.String> |
getKeys()
Get collection of registered views names. |
int |
getRegisteredCount()
Registered views count. |
java.lang.String[] |
getRegisteredNames()
Get array of registered views names. |
boolean |
isRegistered(java.lang.String name)
Is profile with specified name registered. |
AppearancesList |
notDeepClone()
Not deep clone. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
|
void |
registerAppearance(ViewAppearance anAppearance)
Registers new view. |
void |
registerHardCodedAppearance(ViewAppearance anAppearance)
Register new uneditable view. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
|
boolean |
setCurrent(java.lang.String name)
Activates view with specified name. |
boolean |
unRegisterAppearance(java.lang.String aName)
Deletes view with specified name if it is not (default or uneditable). |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String DEFAULT
public static java.lang.String CUSTOM
| Constructor Detail |
|---|
public AppearancesList()
public AppearancesList(boolean autoInit)
autoInit - Does editable view must be created (as a clone of default view).
public AppearancesList(java.lang.String current,
ViewAppearance... cellViews)
current - Selected view name.cellViews - List of accessible views.| Method Detail |
|---|
public int getRegisteredCount()
public boolean isRegistered(java.lang.String name)
public java.lang.String[] getRegisteredNames()
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerpublic ViewAppearance getAppearance(java.lang.String name)
name - View name.ViewAppearancepublic ViewAppearance getDefaultAppearance()
public boolean setCurrent(java.lang.String name)
name - Name of activating view.public ViewAppearance getCurrent()
public void registerAppearance(ViewAppearance anAppearance)
ViewAppearancepublic void registerHardCodedAppearance(ViewAppearance anAppearance)
ViewAppearancepublic boolean unRegisterAppearance(java.lang.String aName)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public java.lang.Object clone()
clone in class java.lang.Objectpublic AppearancesList notDeepClone()
public java.lang.Iterable<java.lang.String> getKeys()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||