bibliothek.extension.gui.dock.theme.bubble
Class RoundButtonViewItem
java.lang.Object
bibliothek.gui.dock.action.view.ConnectingViewItem<JComponent>
bibliothek.extension.gui.dock.theme.bubble.RoundButtonViewItem
- All Implemented Interfaces:
- ViewItem<JComponent>, BasicTitleViewItem<JComponent>
public class RoundButtonViewItem
- extends ConnectingViewItem<JComponent>
- implements BasicTitleViewItem<JComponent>
A BasicTitleViewItem
that connects a RoundButton
with
the DockController
when bound and when a controller is available.
- Author:
- Benjamin Sigg
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoundButtonViewItem
public RoundButtonViewItem(Dockable dockable,
BasicTitleViewItem<JComponent> delegate,
RoundButtonConnectable button)
- Creates a new view item.
- Parameters:
dockable
- the element to observe to get a DockController
delegate
- used to do all the other tasksbutton
- the button which should be connected
changed
protected void changed(DockController oldController,
DockController newController)
- Description copied from class:
ConnectingViewItem
- Called when the
DockController
changed.
- Specified by:
changed
in class ConnectingViewItem<JComponent>
- Parameters:
oldController
- the old controller, can be null
newController
- the new controller, can be null
setOrientation
public void setOrientation(DockTitle.Orientation orientation)
- Description copied from interface:
BasicTitleViewItem
- Informs the item about the orientation of the title that uses this
item.
- Specified by:
setOrientation
in interface BasicTitleViewItem<JComponent>
- Parameters:
orientation
- the orientation