|
SalesPoint v3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sale.MenuSheetObject sale.MenuSheetSeparator
public class MenuSheetSeparator
A separator in a MenuSheet.
Separators are horizontal lines that are displayed in pop up menus to divide them into sections. Separators will not be displayed in JMenuBar representations of MenuSheets.
MenuSheetObject
,
MenuSheet
,
Serialized FormField Summary |
---|
Fields inherited from class sale.MenuSheetObject |
---|
m_msParent, m_pAttached, m_spAttached |
Constructor Summary | |
---|---|
MenuSheetSeparator()
Create a new MenuSheetSeparator. |
|
MenuSheetSeparator(String sTag)
Create a new MenuSheetSeparator with a tag. |
Method Summary | |
---|---|
JMenu |
getMenuPeer()
Return the JMenu peer for this MenuSheetObject. |
JMenuItem |
getPeer()
Return the JMenuItem peer for this MenuSheetObject. |
boolean |
isSeparator()
Return true if this is a separator. |
Methods inherited from class sale.MenuSheetObject |
---|
attach, attach, detachSaleProcess, detachSalesPoint, equals, getCaption, getParent, getTag, getTaggedItem, getTaggedItem, isVisible, setCaption, setVisible |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MenuSheetSeparator(String sTag)
sTag
- the tag to associate with this MenuSheetSeparatorpublic MenuSheetSeparator()
Method Detail |
---|
public final boolean isSeparator()
MenuSheetObject
isSeparator
in class MenuSheetObject
MenuSheetObject.getPeer()
,
MenuSheetObject.getMenuPeer()
public final JMenuItem getPeer()
MenuSheetObject
getPeer
in class MenuSheetObject
null
, as separators do not need a peer.public final JMenu getMenuPeer()
MenuSheetObject
For MenuSheetItems and similar MenuSheetObjects it is recommended that you create a JMenu with the same caption and only one item, the MenuElement peer of the MenuSheetObject. Make sure, however, to create all these objects afresh for the JMenu peer, lest there should result inpredictably behaving menus. This does, of course not apply, if the MenuElement peer and the JMenu peer are entirely equal as is the case for MenuSheets.
Although JMenuItem peer and JMenu peer should be different objects, subsequent
calls to getMenuPeer()
can still return the same object.
getMenuPeer
in class MenuSheetObject
null
, as separators do not need a peer.
|
SalesPoint v3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |