|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JToolBar
uic.widgets.UICToolBar
Replacement ToolBar that has many usability features and works closely with the UICToolBar. This class is a container for buttons and other widgets which are shown in so called toolbar containers. These are mostly attached to the edgets of a top-level window.
Nested Class Summary | |
static class |
UICToolBar.ArrowsIcon
The icon on the more-items button. |
protected static class |
UICToolBar.ScaleHandle
|
static class |
UICToolBar.ToolBarLocation
Data container that displays the corrent location of a UICToolBar. |
Nested classes inherited from class javax.swing.JToolBar |
JToolBar.AccessibleJToolBar, JToolBar.Separator |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
static int |
FLAT
|
static int |
FLOATING
|
static int |
HIDDEN
|
protected int |
location
|
protected int |
oldLocation
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
UICToolBar()
Create a toolbar with location == TOP and no name. |
|
UICToolBar(int location)
Create a toolbar without a name. |
|
UICToolBar(int location,
String name)
Create a new UICToolbar. |
|
UICToolBar(int location,
String name,
Component component)
|
|
UICToolBar(String name)
Create a toolbar with location is TOP |
Method Summary | |
Component |
add(Component child)
Overloaded method; see Component |
Component |
add(Component child,
int index)
Overloaded method; see Component |
void |
add(Component child,
Object contraints)
Overloaded method; see Component |
protected void |
doFlat(boolean on)
|
UICToolBar.ToolBarLocation |
getCurrentLocation()
Get curent state of toolBar, probably only usefull for persistency purposes. |
Dimension |
getPreferredSize()
|
WindowRepresenter |
getWindowRepresenter()
|
void |
hideToolBar()
Hide the toolbar. |
boolean |
isLoneContainer()
|
void |
moreButtonPressedSlot()
Called when the 'more' button has been pressed. |
void |
openContextMenuSlot(int x,
int y)
Method shows the popup menu for this toolbar. |
void |
openToolBarSlot()
Called when clicking on a 'flat' toolbar to open it again in its last known location. |
void |
restoreToolBar()
Called when closing a 'floating' toolbar to open it again in its last known location. |
void |
setLayout(LayoutManager mgr)
Overloaded method; see Component |
void |
setOrientation(int orientation)
Overloaded method; see JToolBar |
void |
setPreferredSize(boolean horizontal,
int offset)
|
void |
setToolBarContainer(WindowRepresenter toolbarContainer)
set the WindowContainer that knows which set of ToolbarContainers and which Window this toolbar belongs to. |
void |
show(int location)
Open/move toolbar to location. |
Methods inherited from class javax.swing.JToolBar |
add, addImpl, addSeparator, addSeparator, createActionChangeListener, createActionComponent, getAccessibleContext, getComponentAtIndex, getComponentIndex, getMargin, getOrientation, getUI, getUIClassID, isBorderPainted, isFloatable, isRollover, paintBorder, paramString, setBorderPainted, setFloatable, setMargin, setRollover, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int FLAT
public static final int FLOATING
public static final int HIDDEN
protected int location
protected int oldLocation
Constructor Detail |
public UICToolBar()
public UICToolBar(int location)
public UICToolBar(String name)
public UICToolBar(int location, String name)
location
- the location where the toolbar should appear on the target Window.
One of TOP/BOTTOM/LEFT/RIGHT/FLAT/FLOATINGname
- the name of the toolbar; is used for tooltips and titles.for an easier alternative.
public UICToolBar(int location, String name, Component component)
Method Detail |
public boolean isLoneContainer()
public void setLayout(LayoutManager mgr)
public void setToolBarContainer(WindowRepresenter toolbarContainer)
public WindowRepresenter getWindowRepresenter()
public UICToolBar.ToolBarLocation getCurrentLocation()
public void openToolBarSlot()
public void restoreToolBar()
public void openContextMenuSlot(int x, int y)
public void setOrientation(int orientation)
public Component add(Component child)
public Component add(Component child, int index)
public void add(Component child, Object contraints)
public void show(int location)
location
- LEFT/RIGHT/TOP/BOTTOM/FLAT are static on this class.public void hideToolBar()
public void moreButtonPressedSlot()
protected void doFlat(boolean on)
public Dimension getPreferredSize()
public void setPreferredSize(boolean horizontal, int offset)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |