|
JMV 0.80 Programmer's Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--OptionsHolder
Class for storing Options. This is a simple way of storing and extending choices with options, such as color or representation. This can then be used to create gui elements in the form of drop down boxes, menus, etc.
Option
,
Serialized FormField Summary | |
java.lang.String |
m_strDescription
description of the holder |
java.lang.String |
m_strTitle
title of the holder |
Constructor Summary | |
OptionsHolder(java.lang.String title,
java.lang.String description)
Constructor |
Method Summary | |
void |
addOption(Option option)
Adds a new option to the OptionsHolder |
java.awt.Choice |
createChoice()
Creates a Choice box that's a drop-down box of the Options contained in this OptionsHolder |
Option |
getOption(int id)
Gets the Option based on its id |
Option |
getOption(java.lang.String name)
Gets the Option based on its name |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.lang.String m_strTitle
public java.lang.String m_strDescription
Constructor Detail |
public OptionsHolder(java.lang.String title, java.lang.String description)
title
- title of the OptionsHolderdescription
- desciption of the OptionsHolderMethod Detail |
public void addOption(Option option)
option
- the Option to holdpublic Option getOption(int id)
id
- id of the Option
public Option getOption(java.lang.String name)
name
- the name of the Option
public java.awt.Choice createChoice()
|
Copyright (C) 2000-2002 The Board of Trustees of the University of Illinois | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |