bibliothek.gui.dock
Class ComponentDockable

java.lang.Object
  extended by bibliothek.gui.dock.dockable.AbstractDockable
      extended by bibliothek.gui.dock.ComponentDockable
All Implemented Interfaces:
bibliothek.gui.dock.DockElement, bibliothek.gui.dock.DockElementRepresentative, bibliothek.gui.dock.station.support.PlaceholderListItem<bibliothek.gui.Dockable>, ExpandableToolbarItem, bibliothek.gui.Dockable, ToolbarElementInterface
Direct Known Subclasses:
OrientedComponentDockable

Deprecated. replaced by ToolbarItemDockable, which offers the same functionality and more

@Deprecated
@Todo(compatibility=BREAK_MINOR,
      priority=MAJOR,
      target=VERSION_1_1_1,
      description="to be removed")
public class ComponentDockable
extends bibliothek.gui.dock.dockable.AbstractDockable
implements ToolbarElementInterface, ExpandableToolbarItem

A Dockable which consist only of one JComponent. This dockable can be put in DockStation which implements marker interface ToolbarInterface

Author:
Herve Guillaume

Constructor Summary
ComponentDockable()
          Deprecated. Constructs a new ComponentDockable
ComponentDockable(Component component)
          Deprecated. Constructs a new ComponentDockable and places one component onto the content pane.
ComponentDockable(Component component, Icon icon)
          Deprecated. Constructs a new ComponentDockable, sets an icon and places one component.
ComponentDockable(Component component, String title)
          Deprecated. Constructs a new ComponentDockable, sets the title and places one component.
ComponentDockable(Component component, String title, Icon icon)
          Deprecated. Constructs a new ComponentDockable, sets the icon and the title, and places a component.
ComponentDockable(Icon icon)
          Deprecated. Constructs a new ComponentDockable and sets the icon.
ComponentDockable(String title)
          Deprecated. Constructs a new ComponentDockable and sets the title.
 
Method Summary
 boolean accept(bibliothek.gui.DockStation station)
          Deprecated.  
 boolean accept(bibliothek.gui.DockStation base, bibliothek.gui.Dockable neighbour)
          Deprecated.  
 void addExpandableListener(ExpandableToolbarItemListener listener)
          Deprecated. Adds the observer listener to this item.
 void addMouseInputListener(MouseInputListener listener)
          Deprecated.  
 bibliothek.gui.DockStation asDockStation()
          Deprecated.  
protected  bibliothek.gui.dock.util.icon.DockIcon createTitleIcon()
          Deprecated.  
 Component getComponent()
          Deprecated.  
 ExpandedState getExpandedState()
          Deprecated. Gets the current state of this item.
 String getFactoryID()
          Deprecated.  
 void removeExpandableListener(ExpandableToolbarItemListener listener)
          Deprecated. Removes the observer listener from this item.
 void removeMouseInputListener(MouseInputListener listener)
          Deprecated.  
 void setComponent(Component component, ExpandedState state)
          Deprecated. Sets the Component which should be shown if in state state.
 void setExpandedState(ExpandedState state)
          Deprecated. Changes the state of this item to state.
 String toString()
          Deprecated.  
 
Methods inherited from class bibliothek.gui.dock.dockable.AbstractDockable
addDockableListener, addDockableStateListener, addDockHierarchyListener, addKeyListener, asDockable, bind, configureDisplayerHints, fireTitleBound, fireTitleExchanged, fireTitleExchanged, fireTitleIconChanged, fireTitleTextChanged, fireTitleTooltipChanged, fireTitleUnbound, getConfigurableDisplayerHints, getController, getDockableStateListeners, getDockElementObserver, getDockParent, getElement, getGlobalActionOffers, getLocalActionOffers, getPopupLocation, getTitleIcon, getTitleIconHandling, getTitleText, getTitleToolTip, isDockableShowing, isDockableVisible, isUsedAsTitle, listBoundTitles, removeDockableListener, removeDockableStateListener, removeDockHierarchyListener, removeKeyListener, requestDisplayer, requestDockTitle, resetTitleIcon, setActionOffers, setController, setDockParent, setTitleIcon, setTitleIconHandling, setTitleText, setTitleToolTip, shouldFocus, shouldTransfersFocus, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface bibliothek.gui.Dockable
addDockableListener, addDockableStateListener, addDockHierarchyListener, bind, configureDisplayerHints, getController, getDockParent, getGlobalActionOffers, getLocalActionOffers, getTitleIcon, getTitleText, getTitleToolTip, isDockableShowing, isDockableVisible, listBoundTitles, removeDockableListener, removeDockableStateListener, removeDockHierarchyListener, requestDisplayer, requestDockTitle, setController, setDockParent, unbind
 
Methods inherited from interface bibliothek.gui.dock.DockElement
asDockable
 
Methods inherited from interface bibliothek.gui.dock.DockElementRepresentative
getElement, getPopupLocation, isUsedAsTitle, shouldFocus, shouldTransfersFocus
 
Methods inherited from interface bibliothek.gui.dock.station.support.PlaceholderListItem
asDockable
 

Constructor Detail

ComponentDockable

public ComponentDockable()
Deprecated. 
Constructs a new ComponentDockable


ComponentDockable

public ComponentDockable(Icon icon)
Deprecated. 
Constructs a new ComponentDockable and sets the icon.

Parameters:
icon - the icon, to be shown at various places

ComponentDockable

public ComponentDockable(String title)
Deprecated. 
Constructs a new ComponentDockable and sets the title.

Parameters:
title - the title, to be shown at various places

ComponentDockable

public ComponentDockable(Component component)
Deprecated. 
Constructs a new ComponentDockable and places one component onto the content pane.

Parameters:
component - the only child of the content pane

ComponentDockable

public ComponentDockable(Component component,
                         Icon icon)
Deprecated. 
Constructs a new ComponentDockable, sets an icon and places one component.

Parameters:
component - the only child of the content pane
icon - the icon, to be shown at various places

ComponentDockable

public ComponentDockable(Component component,
                         String title)
Deprecated. 
Constructs a new ComponentDockable, sets the title and places one component.

Parameters:
component - the only child of the content pane
title - the title, to be shown at various places

ComponentDockable

public ComponentDockable(Component component,
                         String title,
                         Icon icon)
Deprecated. 
Constructs a new ComponentDockable, sets the icon and the title, and places a component.

Parameters:
component - the only child of the content pane
title - the title, to be shown at various places
icon - the icon, to be shown at various places
Method Detail

addMouseInputListener

public void addMouseInputListener(MouseInputListener listener)
Deprecated. 
Specified by:
addMouseInputListener in interface bibliothek.gui.dock.DockElementRepresentative
Specified by:
addMouseInputListener in interface bibliothek.gui.Dockable
Overrides:
addMouseInputListener in class bibliothek.gui.dock.dockable.AbstractDockable

removeMouseInputListener

public void removeMouseInputListener(MouseInputListener listener)
Deprecated. 
Specified by:
removeMouseInputListener in interface bibliothek.gui.dock.DockElementRepresentative
Specified by:
removeMouseInputListener in interface bibliothek.gui.Dockable
Overrides:
removeMouseInputListener in class bibliothek.gui.dock.dockable.AbstractDockable

setComponent

public void setComponent(Component component,
                         ExpandedState state)
Deprecated. 
Sets the Component which should be shown if in state state. Please note that the same Component cannot be used for more than one state.

Parameters:
component - the component to add
state - the state in which to show component

setExpandedState

public void setExpandedState(ExpandedState state)
Deprecated. 
Description copied from interface: ExpandableToolbarItem
Changes the state of this item to state.

Specified by:
setExpandedState in interface ExpandableToolbarItem
Parameters:
state - the new state

getExpandedState

public ExpandedState getExpandedState()
Deprecated. 
Description copied from interface: ExpandableToolbarItem
Gets the current state of this item.

Specified by:
getExpandedState in interface ExpandableToolbarItem
Returns:
the current state

getComponent

public Component getComponent()
Deprecated. 
Specified by:
getComponent in interface bibliothek.gui.dock.DockElementRepresentative
Specified by:
getComponent in interface bibliothek.gui.Dockable

addExpandableListener

public void addExpandableListener(ExpandableToolbarItemListener listener)
Deprecated. 
Description copied from interface: ExpandableToolbarItem
Adds the observer listener to this item.

Specified by:
addExpandableListener in interface ExpandableToolbarItem
Parameters:
listener - the new listener, not null

removeExpandableListener

public void removeExpandableListener(ExpandableToolbarItemListener listener)
Deprecated. 
Description copied from interface: ExpandableToolbarItem
Removes the observer listener from this item.

Specified by:
removeExpandableListener in interface ExpandableToolbarItem
Parameters:
listener - the listener to remove

asDockStation

public bibliothek.gui.DockStation asDockStation()
Deprecated. 
Specified by:
asDockStation in interface bibliothek.gui.dock.DockElement

getFactoryID

public String getFactoryID()
Deprecated. 
Specified by:
getFactoryID in interface bibliothek.gui.dock.DockElement

createTitleIcon

protected bibliothek.gui.dock.util.icon.DockIcon createTitleIcon()
Deprecated. 
Specified by:
createTitleIcon in class bibliothek.gui.dock.dockable.AbstractDockable

accept

public boolean accept(bibliothek.gui.DockStation station)
Deprecated. 
Specified by:
accept in interface bibliothek.gui.Dockable
Overrides:
accept in class bibliothek.gui.dock.dockable.AbstractDockable

accept

public boolean accept(bibliothek.gui.DockStation base,
                      bibliothek.gui.Dockable neighbour)
Deprecated. 
Specified by:
accept in interface bibliothek.gui.Dockable
Overrides:
accept in class bibliothek.gui.dock.dockable.AbstractDockable

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object