|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.action.swing.AbstractMenuBuilder
public abstract class AbstractMenuBuilder
Base implementation for the MenuBuilder implementation. It provides
the support for dealing with the separators.
| Constructor Summary | |
|---|---|
AbstractMenuBuilder()
|
|
| Method Summary | |
|---|---|
void |
add(JComponent component)
Adds a direct component in this menu |
void |
addSeparator()
Checks if a separator has been created before before creating a new one. |
protected abstract void |
createSeparator()
This method is called when a sub-class must create a separator. |
protected void |
noSeparator()
This method must be called by sub-classes whenever they create a component which is not a separator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.doolin.gui.action.swing.MenuBuilder |
|---|
add, clear, createSubMenu |
| Constructor Detail |
|---|
public AbstractMenuBuilder()
| Method Detail |
|---|
public void addSeparator()
addSeparator in interface MenuBuilderpublic void add(JComponent component)
MenuBuilder
add in interface MenuBuildercomponent - Component to addprotected void noSeparator()
protected abstract void createSeparator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||