|
JIDE 3.5.15 | ||||||||
| 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.JPanel
com.jidesoft.swing.SidePane
public class SidePane
SidePane is a component that can display several buttons horzontally or vertically. It usually attaches to side of a JFrame.
Buttons in SidePane can be grouped. Each group is calledSidePaneGroup.
Each button in the group is called SidePaneItem.
| Nested Class Summary | |
|---|---|
protected class |
SidePane.AccessibleSidePane
This class implements accessibility support for the SidePane class. |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| 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 | |
|---|---|
SidePane(int attachedSide)
Constructor thats takes the side which this component is attached to. |
|
| Method Summary | |
|---|---|
void |
addGroup(SidePaneGroup group)
Adds a SidePaneGroup |
AccessibleContext |
getAccessibleContext()
Gets the AccessibleContext associated with this JToolBar. |
int |
getAttachedSide()
Gets attached side. |
List<SidePaneGroup> |
getGroups()
Gets the list of groups in this components. |
String |
getToolTipText(MouseEvent event)
|
SidePaneUI |
getUI()
Returns the UI object which implements the L&F for this component. |
String |
getUIClassID()
Returns the name of the UI class that implements the L&F for this component. |
boolean |
isRollover()
Is the side pane expand when mouse moves over? |
void |
removeGroup(int index)
Removes a SidePaneGroup |
void |
removeGroup(SidePaneGroup group)
Removes a SidePaneGroup |
void |
setAttachedSide(int attachedSide)
Sets the attached side. |
void |
setRollover(boolean rollover)
Set if the side pane expand when mouse moves over. |
void |
setUI(SidePaneUI ui)
Sets the UI object which implements the L&F for this component. |
void |
updateUI()
Resets the UI property to a value from the current look and feel. |
| Methods inherited from class javax.swing.JPanel |
|---|
paramString, setUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SidePane(int attachedSide)
attachedSide - the side which this component is attached to.
Possible values are:SwingConstants.NORTH
SwingConstants.SOUTH
SwingConstants.WEST
SwingConstants.EAST
IllegalArgumentException - if the value is not one of NORTH, SOUTH, WEST, or EAST.| Method Detail |
|---|
public SidePaneUI getUI()
getUI in class JPanelTabbedPaneUI objectsetUI(com.jidesoft.plaf.SidePaneUI)public void setUI(SidePaneUI ui)
ui - the new UI objectUIDefaults.getUI(javax.swing.JComponent)public void updateUI()
updateUI in class JPanelJComponent.updateUI()public String getUIClassID()
getUIClassID in class JPanelJComponent.getUIClassID(),
UIDefaults.getUI(javax.swing.JComponent)public void addGroup(SidePaneGroup group)
SidePaneGroup to this component.
Do nothing if there is nothing in the group.
- Parameters:
group - the group to be added
public void removeGroup(SidePaneGroup group)
SidePaneGroup from this component.
- Parameters:
group - the group to be removed
public void removeGroup(int index)
SidePaneGroup at a spefific index from this component.
- Parameters:
index - position of the group to be removed
public List<SidePaneGroup> getGroups()
public int getAttachedSide()
public void setAttachedSide(int attachedSide)
updateUI automatically.
Possible values are:SwingConstants.NORTH
SwingConstants.SOUTH
SwingConstants.WEST
SwingConstants.EAST
attachedSide - the attached side
IllegalArgumentException - if the value is not one of valid valuespublic boolean isRollover()
public void setRollover(boolean rollover)
rollover - the flagpublic String getToolTipText(MouseEvent event)
getToolTipText in class JComponentpublic AccessibleContext getAccessibleContext()
getAccessibleContext in interface AccessiblegetAccessibleContext in class JPanel
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||