|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Frame | +--javax.swing.JFrame | +--uk.ac.man.bioinf.gui.optionable.OptionableJFrame
OptionableJFrame.java Created: Fri May 07 16:45:36 1999
Nested Class Summary |
Nested classes inherited from class javax.swing.JFrame |
JFrame.AccessibleJFrame |
Nested classes inherited from class java.awt.Frame |
Frame.AccessibleAWTFrame |
Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
OptionableJFrame(String optionableName)
|
|
OptionableJFrame(String optionableName,
boolean delayOptionable)
No title. |
|
OptionableJFrame(String optionableName,
String title)
An internal frame with a title |
|
OptionableJFrame(String optionableName,
String title,
boolean delayOptionable)
|
|
OptionableJFrame(String optionableName,
String title,
boolean delayOptionable,
OptionHandler handler)
A title and the ability to delay the registering of the optionable status |
Method Summary | |
void |
defaultPack()
Pack the frame if the size hasnt been sized by its options |
protected void |
forceOptionable()
Force the setting the optionable status now. |
static OptionHandler |
getDefaultOptionHandler()
|
String |
getOptionGroupName()
Subclasses must provide this, either on a class or instance basis |
OptionHandler |
getOptionHandler()
Implementation of the Optionable interface |
Object |
getOptions()
An implementation of the Optionable interface. |
void |
setDefaultLocation(int x,
int y)
Pretty much the same as setDefaultSize |
static void |
setDefaultOptionHandler(OptionHandler optionHandler)
|
void |
setDefaultSize(int x,
int y)
This sets the size of the frame, only if it hasnt been set as an option. |
void |
setOptionHandler(OptionHandler optionHandler)
Implementation of the OptionableInterface |
void |
setOptions()
|
void |
setOptions(Object param1)
Implementation of the Optionable Interface. |
Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Constructor Detail |
public OptionableJFrame(String optionableName)
public OptionableJFrame(String optionableName, String title)
title
- public OptionableJFrame(String optionableName, boolean delayOptionable)
delayOptionable
- delay setting options until explicitly toldforceOptionable()
public OptionableJFrame(String optionableName, String title, boolean delayOptionable)
public OptionableJFrame(String optionableName, String title, boolean delayOptionable, OptionHandler handler)
optionableName
- the name used to identify this Frame to the
optionable library.title
- the titledelayOptionable
- delay setting optionable statusMethod Detail |
public void setOptions() throws OptionableStateException
OptionableStateException
protected void forceOptionable()
RuntimeException
- if called illegallypublic void setDefaultSize(int x, int y)
x
- the widthy
- the heightpublic void setDefaultLocation(int x, int y)
x
- the x locationy
- the y locationsetDefaultSize(int, int)
public void defaultPack()
public Object getOptions()
getOptions
in interface Optionable
public void setOptions(Object param1)
setOptions
in interface Optionable
param1
- getOptions
public void setOptionHandler(OptionHandler optionHandler)
setOptionHandler
in interface Optionable
optionHandler
- the value to assign to OptionHandlerpublic OptionHandler getOptionHandler()
getOptionHandler
in interface Optionable
public String getOptionGroupName()
getOptionGroupName
in interface Optionable
public static void setDefaultOptionHandler(OptionHandler optionHandler)
public static OptionHandler getDefaultOptionHandler()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |