net.xoetrope.xui
Interface XAppender

All Known Implementing Classes:
XCoolBar, XMenu, XMenu, XMenu, XMenu, XMenuBar, XMenuBar, XMenuBar, XToolBar

public interface XAppender

A simple interface to allow one item to be appended to another. Known uses include XMenu and XMenuBar

Copyright (c) Xoetrope Ltd., 2002-2003

Liscense: see license.txt $Revision: 2.4 $


Method Summary
 void addSeparator()
          Adds a separator to this item.
 void append(java.lang.Object o, java.lang.String name)
          Appends the object o to this item
 java.lang.Object getObject(java.lang.String name)
          Get a child object by name
 void setAction(java.lang.Object action)
          Set an Action for the menu
 void setName(java.lang.String name)
          Set the name of this object
 void setup()
          Do any final setup needed
 

Method Detail

append

void append(java.lang.Object o,
            java.lang.String name)
Appends the object o to this item

Parameters:
o - the appended item
name - the item name

addSeparator

void addSeparator()
Adds a separator to this item.


getObject

java.lang.Object getObject(java.lang.String name)
Get a child object by name

Parameters:
name - the item name
Returns:
the child item

setup

void setup()
Do any final setup needed


setName

void setName(java.lang.String name)
Set the name of this object

Parameters:
name - the item name

setAction

void setAction(java.lang.Object action)
Set an Action for the menu

Parameters:
action - the action object