|
||||||||||
| 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.JPopupMenu
org.apache.batik.util.gui.DropDownComponent.ScrollablePopupMenu
public static class DropDownComponent.ScrollablePopupMenu
The Scrollable Popup Menu Component.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPopupMenu |
|---|
JPopupMenu.AccessibleJPopupMenu, JPopupMenu.Separator |
| 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 java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
DropDownComponent.ScrollablePopupMenu(JComponent owner)
Constructor. |
|
| Method Summary | |
|---|---|
void |
add(DropDownComponent.ScrollablePopupMenuItem menuItem,
int index,
int oldSize,
int newSize)
Adds the item to this component at the specified location. |
void |
addListener(DropDownComponent.ScrollablePopupMenuListener listener)
Adds the listener to the listener list. |
void |
fireItemsWereAdded(DropDownComponent.ScrollablePopupMenuEvent event)
Fires the itemsWereAdded event, when the items are added to this pop up menu. |
void |
fireItemsWereRemoved(DropDownComponent.ScrollablePopupMenuEvent event)
Fires the itemsWereRemove event, when the items are removed from this pop up menu. |
DropDownComponent.ScrollablePopupMenuItem |
getFooter()
Gets the footer item. |
DropDownComponent.ScrollablePopupMenuModel |
getModel()
Gets the ScrollablePopupMenuModel |
JComponent |
getOwner()
Gets the owner component. |
Dimension |
getPreferredSize()
|
int |
getSelectedItemsCount()
Gets the number of the selected items. |
void |
processItemClicked()
Processes click on the pop up menu item. |
void |
remove(DropDownComponent.ScrollablePopupMenuItem menuItem,
int oldSize,
int newSize)
Removes the item from this component. |
void |
selectionChanged(DropDownComponent.ScrollablePopupMenuItem targetItem,
boolean wasSelected)
Invoked when item selection changes. |
void |
setModel(DropDownComponent.ScrollablePopupMenuModel model)
Sets the ScrollablePopupMenuModel. |
void |
showMenu(Component invoker,
Component refComponent)
Shows this popup menu. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DropDownComponent.ScrollablePopupMenu(JComponent owner)
owner - The owner component| Method Detail |
|---|
public void showMenu(Component invoker,
Component refComponent)
invoker - The popup menu invoker componentrefComponent - The dropdown component that containts this menu
public void add(DropDownComponent.ScrollablePopupMenuItem menuItem,
int index,
int oldSize,
int newSize)
menuItem - the item to add
public void remove(DropDownComponent.ScrollablePopupMenuItem menuItem,
int oldSize,
int newSize)
menuItem - the item to removepublic Dimension getPreferredSize()
getPreferredSize in class JComponent
public void selectionChanged(DropDownComponent.ScrollablePopupMenuItem targetItem,
boolean wasSelected)
public void setModel(DropDownComponent.ScrollablePopupMenuModel model)
model - the model to setpublic DropDownComponent.ScrollablePopupMenuModel getModel()
public int getSelectedItemsCount()
public void processItemClicked()
public JComponent getOwner()
public DropDownComponent.ScrollablePopupMenuItem getFooter()
public void addListener(DropDownComponent.ScrollablePopupMenuListener listener)
listener - The listener to addpublic void fireItemsWereAdded(DropDownComponent.ScrollablePopupMenuEvent event)
event - The associated ScrollablePopupMenuEvent eventpublic void fireItemsWereRemoved(DropDownComponent.ScrollablePopupMenuEvent event)
event - The associated ScrollablePopupMenuEvent event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||