|
||||||||||
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 | +--jwo.vfc.hub.JWFrame | +--jwo.vfc.hubclient.MetaForm
Allows data to be submitted to the hub by providing a metadata form to fill out.
Nested Class Summary |
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 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 java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
MetaForm()
Creates the initial metadata form with a default background colour. |
|
MetaForm(Color bgColour)
Creates the initial metadata form with a given background colour. |
Method Summary | |
void |
actionPerformed(ActionEvent event)
Responds to button presses by either validating metadata entry, cancelling window or browsing for files. |
void |
addReturnButtons(MetaFormListener metaFormListener)
Adds a set of return buttons to the frame. |
void |
closeFrame()
Closes down window if requested. |
Metadata |
getMetadata()
Extracts the metadata from the form and validates their contents. |
void |
itemStateChanged(ItemEvent e)
Responds to a change in one of the choice boxes. |
static void |
main(String[] argv)
Creates a GUI front end for metadata entry. |
void |
setConsole(String message)
Sets the console message for the metadata form. |
void |
setMetadata(Metadata metadata)
Fills out the form with the given set of metadata. |
void |
setObjectID(String id)
Sets the object ID for the metadata form. |
void |
textValueChanged(TextEvent e)
Responds to a change in the text of the author box. |
Methods inherited from class jwo.vfc.hub.JWFrame |
add, addReturnButtons, getGBConstraints, getGBLayout |
Methods inherited from class java.awt.Frame |
addNotify, finalize, getAccessibleContext, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, paramString, 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 MetaForm()
public MetaForm(Color bgColour)
bgColour
- Background colour.Method Detail |
public static void main(String[] argv)
argv
- Command line arguments (ignored for the moment)public void addReturnButtons(MetaFormListener metaFormListener)
public Metadata getMetadata()
public void setMetadata(Metadata metadata)
metadata
- New metadata to fill out form.public void setConsole(String message)
message
- Message to display in console.public void setObjectID(String id)
public void actionPerformed(ActionEvent event)
actionPerformed
in interface ActionListener
actionPerformed
in class JWFrame
event
- button press event.public void itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener
public void textValueChanged(TextEvent e)
textValueChanged
in interface TextListener
public void closeFrame()
closeFrame
in class JWFrame
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |