|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.AbstractDockable
bibliothek.gui.dock.DefaultDockable
public class DefaultDockable
A Dockable
which consists only of one Component
called
"content pane". It's possible to add or remove components from the
content pane at any time.
Field Summary | |
---|---|
private javax.swing.JPanel |
pane
the content pane |
Constructor Summary | |
---|---|
DefaultDockable()
Constructs a new DefaultDockable |
|
DefaultDockable(java.awt.Component component)
Constructs a new DefaultDockable and places one component onto the content pane. |
|
DefaultDockable(java.awt.Component component,
javax.swing.Icon icon)
Constructs a new DefaultDockable, sets an icon and places one component. |
|
DefaultDockable(java.awt.Component component,
java.lang.String title)
Constructs a new DefaultDockable, sets the title and places one component. |
|
DefaultDockable(java.awt.Component component,
java.lang.String title,
javax.swing.Icon icon)
Constructs a new DefaultDockable, sets the icon and the title, and places a component. |
|
DefaultDockable(javax.swing.Icon icon)
Constructs a new DefaultDockable and sets the icon. |
|
DefaultDockable(java.lang.String title)
Constructs a new DefaultDockable and sets the title. |
Method Summary | |
---|---|
void |
add(java.awt.Component component)
Adds component to the content pane. |
void |
add(java.awt.Component component,
java.lang.Object constraints)
Adds component to the content pane. |
DockStation |
asDockStation()
Returns this if this is an instance of
DockStation . |
java.awt.Component |
getComponent()
Gets the Component which represents this Dockable. |
java.awt.Container |
getContentPane()
Gets a panel for children of this Dockable. |
java.lang.String |
getFactoryID()
Gets the unique name of the DockFactory which can read
and write elements of this type. |
void |
remove(java.awt.Component component)
Removes component from the content pane. |
void |
setLayout(java.awt.LayoutManager layout)
Sets the layout of the content pane. |
Methods inherited from class bibliothek.gui.dock.AbstractDockable |
---|
accept, accept, addDockableListener, addMouseInputListener, asDockable, bind, fireTitleBinded, fireTitleIconChanged, fireTitleTextChanged, fireTitleUnbinded, getActionOffers, getController, getDockParent, getDockTitle, getTitleIcon, getTitleText, listBindedTitles, removeDockableListener, removeMouseInputListener, setActionOffers, setController, setDockParent, setTitleIcon, setTitleText, unbind |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private javax.swing.JPanel pane
Constructor Detail |
---|
public DefaultDockable()
public DefaultDockable(javax.swing.Icon icon)
icon
- the icon, to be shown at various placespublic DefaultDockable(java.lang.String title)
title
- the title, to be shown at various placespublic DefaultDockable(java.awt.Component component)
component
- the only child of the content panepublic DefaultDockable(java.awt.Component component, javax.swing.Icon icon)
component
- the only child of the content paneicon
- the icon, to be shown at various placespublic DefaultDockable(java.awt.Component component, java.lang.String title)
component
- the only child of the content panetitle
- the title, to be shown at various placespublic DefaultDockable(java.awt.Component component, java.lang.String title, javax.swing.Icon icon)
component
- the only child of the content panetitle
- the title, to be shown at various placesicon
- the icon, to be shown at various placesMethod Detail |
---|
public java.lang.String getFactoryID()
DockElement
DockFactory
which can read
and write elements of this type.
public java.awt.Component getComponent()
Dockable
Component
which represents this Dockable. Note that
the component should be a
focus cycle root
public DockStation asDockStation()
DockElement
this
if this
is an instance of
DockStation
. Otherwise null
is returned.
this
or null
public java.awt.Container getContentPane()
public void add(java.awt.Component component)
component
to the content pane.
component
- the new childpublic void add(java.awt.Component component, java.lang.Object constraints)
component
to the content pane.
component
- the new childconstraints
- information for th LayoutManager
public void remove(java.awt.Component component)
component
from the content pane.
component
- the child to removepublic void setLayout(java.awt.LayoutManager layout)
FlowLayout
, except the constructor has added a component to the
layout. In that case, the layout is a GridLayout
.
layout
- the new layout of the content pane
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |