|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.common.intern.AbstractCDockable
bibliothek.gui.dock.common.intern.DefaultCDockable
public class DefaultCDockable
An CDockable
that uses a DefaultCommonDockable
to show
its content.
Nested Class Summary | |
---|---|
static class |
DefaultCDockable.Permissions
Describes what the user can do with the enclosing DefaultCDockable .A name like X_Y tells, that feature X and
feature Y are available. |
Nested classes/interfaces inherited from interface bibliothek.gui.dock.common.intern.CDockable |
---|
CDockable.ExtendedMode |
Constructor Summary | |
---|---|
DefaultCDockable()
Creates a new dockable |
|
DefaultCDockable(DefaultCDockable.Permissions permission)
Creates a new dockable. |
Method Summary | |
---|---|
void |
addAction(CAction action)
Adds an action to this dockable. |
void |
addSeparator()
Adds a separator to the list of CAction s of this dockable. |
Container |
getContentPane()
Gets the container on which the client can pack its components. |
Icon |
getTitleIcon()
Gets the icon that is shown in the title. |
String |
getTitleText()
Gets the text that is shown as title. |
void |
insertAction(int index,
CAction action)
Adds a new action to this dockable. |
void |
insertSeparator(int index)
Adds a separator to the list of CAction s of this dockable. |
DefaultCommonDockable |
intern()
Gets the intern representation of this dockable. |
boolean |
isCloseable()
Tells whether this dockable can be closed by the user. |
boolean |
isExternalizable()
Tells whether this dockable can be externalized by the user. |
boolean |
isMaximizable()
Tells whether this dockable can be maximized by the user. |
boolean |
isMinimizable()
Tells whether this dockable can be minimized by the user. |
boolean |
isStackable()
Tells whether this dockable can be combined with another dockable to create a stack. |
void |
removeAction(CAction action)
Removes an action from this dockable. |
void |
removeAction(int index)
Removes an action from this dockable |
void |
setCloseable(boolean closeable)
Sets whether the user can close this dockable. |
void |
setExternalizable(boolean externalizable)
Sets whether the user can externalize this dockable. |
void |
setMaximizable(boolean maximizable)
Sets whether the user can maximize this dockable. |
void |
setMinimizable(boolean minimizable)
Sets whether the user can minimize this dockable. |
void |
setStackable(boolean stackable)
Sets whether this element can be combined with other dockable to create a stack. |
void |
setTitleIcon(Icon icon)
Sets the icon that is shown in the title of this CDockable . |
void |
setTitleText(String text)
Sets the text that is shown as title. |
Methods inherited from class bibliothek.gui.dock.common.intern.AbstractCDockable |
---|
addCDockablePropertyListener, addCDockableStateListener, control, getAndClearResizeRequest, getClose, getColors, getControl, getExtendedMode, getLocation, getMinimizedSize, getWorkingArea, init, isMinimizedHold, isResizeLocked, isVisible, propertyListeners, removeCDockablePropertyListener, removeCDockableStateListener, setControl, setExtendedMode, setLocation, setMinimizedHold, setMinimizedSize, setResizeLocked, setResizeRequest, setVisible, setWorkingArea, stateListeners, toFront, updateClose |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultCDockable()
public DefaultCDockable(DefaultCDockable.Permissions permission)
permission
- the permissions of this dockableMethod Detail |
---|
public Container getContentPane()
public void setTitleText(String text)
text
- the titlepublic String getTitleText()
public void setTitleIcon(Icon icon)
CDockable
.
icon
- the title-iconpublic Icon getTitleIcon()
null
public boolean isMinimizable()
CDockable
true
if this element can be minimizedpublic void setMinimizable(boolean minimizable)
minimizable
- true
if the user can minimize this elementpublic boolean isMaximizable()
CDockable
true
if this element can be maximizedpublic void setMaximizable(boolean maximizable)
maximizable
- true
if the user can maximize this elementpublic boolean isExternalizable()
CDockable
true
if this element can be externalizedpublic void setExternalizable(boolean externalizable)
externalizable
- true
if the user can externalize this elementpublic boolean isCloseable()
CDockable
true
if this element can be closedpublic void setStackable(boolean stackable)
stackable
- true
if this element can be combined.public boolean isStackable()
CDockable
true
if this element can be combined with
another dockable, normally true
should be the answer.public void setCloseable(boolean closeable)
closeable
- true
if the user can close this elementpublic void addAction(CAction action)
action
- the new actionpublic void insertAction(int index, CAction action)
index
- the location of the actionaction
- the actionaddAction(CAction)
public void addSeparator()
CAction
s of this dockable.
public void insertSeparator(int index)
CAction
s of this dockable.
index
- the location of the actionpublic void removeAction(int index)
index
- the location of the actionpublic void removeAction(CAction action)
action
- the action to removepublic DefaultCommonDockable intern()
AbstractCDockable
intern
in interface CDockable
intern
in class AbstractCDockable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |