|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | 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 | +--org.w3c.rdfpic.ui.SimpleUI
A simple UI for RdfPic. It creates a menubar with a '?' (about) 'rdf' and 'image' menus and lets the user use SchemaTabbedPane to edit the rdf in the image. The SchemaTabbedPane is placed next to a preview of the image in a JSplitPane. 'next' 'prev' and 'apply' command are also available in a toolbar initially under the menubar, as well as a language selection box.
Inner classes inherited from class javax.swing.JFrame |
javax.swing.JFrame.AccessibleJFrame |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AWTTreeLock |
Field Summary | |
(package private) javax.swing.JMenu |
aboutMenu
|
(package private) javax.swing.JButton |
applyButton
|
(package private) javax.swing.JMenuItem |
applyItem
|
(package private) RdfPicCore |
core
|
(package private) SchemaTabbedPane |
dataPane
|
(package private) ExtensionFileFilter |
effJpeg
|
(package private) ExtensionFileFilter |
effSchema
|
(package private) javax.swing.JMenuItem |
exportRdf
|
(package private) javax.swing.JMenuItem |
extractRaw
|
(package private) javax.swing.JFileChooser |
fc
|
(package private) javax.swing.JMenu |
fileMenu
|
(package private) boolean |
ignoreToggle
|
(package private) javax.swing.JMenu |
imageMenu
|
(package private) javax.swing.JMenuItem |
importRdf
|
(package private) javax.swing.JMenuItem |
insertRaw
|
(package private) javax.swing.JComboBox |
langsel
|
(package private) javax.swing.JMenuBar |
menuBar
|
(package private) javax.swing.JButton |
nextButton
|
(package private) javax.swing.JMenuItem |
nextItem
|
(package private) ScaledPhoto |
photo
|
(package private) javax.swing.JButton |
prevButton
|
(package private) javax.swing.JMenuItem |
prevItem
|
(package private) javax.swing.ButtonGroup |
selectImageGroup
|
(package private) javax.swing.JRadioButtonMenuItem[] |
selectImageItems
|
(package private) javax.swing.JMenu |
selectImageMenu
|
(package private) static java.lang.String |
separatorStr
|
(package private) static java.lang.String |
titleStr
|
(package private) javax.swing.JCheckBoxMenuItem[] |
toggleSchemaItem
|
(package private) javax.swing.JMenu |
toggleSchemaMenu
|
Fields inherited from class javax.swing.JFrame |
accessibleContext,
defaultCloseOperation,
rootPane,
rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
base,
CROSSHAIR_CURSOR,
DEFAULT_CURSOR,
E_RESIZE_CURSOR,
frameSerializedDataVersion,
HAND_CURSOR,
icon,
ICONIFIED,
mbManagement,
menuBar,
MOVE_CURSOR,
N_RESIZE_CURSOR,
nameCounter,
NE_RESIZE_CURSOR,
NORMAL,
NW_RESIZE_CURSOR,
ownedWindows,
resizable,
S_RESIZE_CURSOR,
SE_RESIZE_CURSOR,
serialVersionUID,
state,
SW_RESIZE_CURSOR,
TEXT_CURSOR,
title,
W_RESIZE_CURSOR,
WAIT_CURSOR,
weakThis |
Fields inherited from class java.awt.Window |
active,
base,
focusMgr,
inputContext,
nameCounter,
OPENED,
ownedWindowList,
serialVersionUID,
state,
warningString,
weakThis,
windowListener,
windowSerializedDataVersion |
Fields inherited from class java.awt.Container |
component,
containerListener,
containerSerializedDataVersion,
dispatcher,
layoutMgr,
maxSize,
ncomponents,
serialVersionUID |
Fields inherited from class java.awt.Component |
actionListenerK,
adjustmentListenerK,
appContext,
assert,
background,
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
changeSupport,
componentListener,
componentListenerK,
componentOrientation,
componentSerializedDataVersion,
containerListenerK,
cursor,
dropTarget,
enabled,
eventMask,
focusListener,
focusListenerK,
font,
foreground,
hasFocus,
height,
incRate,
inputMethodListener,
inputMethodListenerK,
isInc,
isPacked,
itemListenerK,
keyListener,
keyListenerK,
LEFT_ALIGNMENT,
locale,
LOCK,
minSize,
mouseListener,
mouseListenerK,
mouseMotionListener,
mouseMotionListenerK,
name,
nameExplicitlySet,
newEventsOnly,
ownedWindowK,
parent,
peer,
peerFont,
popups,
prefSize,
RIGHT_ALIGNMENT,
serialVersionUID,
textListenerK,
TOP_ALIGNMENT,
valid,
visible,
width,
windowListenerK,
x,
y |
Constructor Summary | |
SimpleUI()
|
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
addingSchema()
Called when a schema is added. |
(package private) void |
checkEnabledStatus()
|
(package private) void |
checkEnabledStatus(int index)
|
boolean |
checkInput(java.lang.String msgID,
java.lang.String input)
Must return whether the input is acceptable. |
void |
disablingSchema(int index)
|
void |
enablingSchema(int index)
|
(package private) void |
genSelectImageItems()
|
(package private) void |
genToggleSchema()
|
void |
go(RdfPicCore core)
Activates the UI |
void |
hasJumped(java.lang.String errMsg)
Is called when the load is finished. |
void |
imgVUpdate()
Is called when the vector of images has changed. |
void |
isJumping(int newindex)
Is called when a load request is put. |
void |
itemStateChanged(java.awt.event.ItemEvent e)
|
(package private) void |
jumpSafe(boolean safe)
|
void |
quit()
|
void |
windowActivated(java.awt.event.WindowEvent e)
|
void |
windowClosed(java.awt.event.WindowEvent e)
|
void |
windowClosing(java.awt.event.WindowEvent e)
|
void |
windowDeactivated(java.awt.event.WindowEvent e)
|
void |
windowDeiconified(java.awt.event.WindowEvent e)
|
void |
windowIconified(java.awt.event.WindowEvent e)
|
void |
windowOpened(java.awt.event.WindowEvent e)
|
(package private) void |
writeEnable(boolean safe)
|
private void |
yetTodo(java.lang.String msg)
|
Methods inherited from class javax.swing.JFrame |
addImpl,
createRootPane,
createRootPaneException,
frameInit,
getAccessibleContext,
getContentPane,
getDefaultCloseOperation,
getGlassPane,
getJMenuBar,
getLayeredPane,
getRootPane,
isRootPaneCheckingEnabled,
paramString,
processKeyEvent,
processWindowEvent,
remove,
setContentPane,
setDefaultCloseOperation,
setGlassPane,
setJMenuBar,
setLayeredPane,
setLayout,
setRootPane,
setRootPaneCheckingEnabled,
update |
Methods inherited from class java.awt.Frame |
|
Methods inherited from class java.awt.Window |
addOwnedWindow,
addWindowListener,
applyResourceBundle,
applyResourceBundle,
connectOwnedWindow,
dispatchEventImpl,
dispose,
eventEnabled,
getFocusOwner,
getInputContext,
getLocale,
getOwnedWindows,
getOwner,
getToolkit,
getWarningString,
hide,
isActive,
isShowing,
nextFocus,
ownedInit,
pack,
postEvent,
postWindowEvent,
preProcessKeyEvent,
processEvent,
removeOwnedWindow,
removeWindowListener,
setCursor,
setFocusOwner,
setWarningString,
show,
toBack,
toFront,
transferFocus |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
applyOrientation,
countComponents,
deliverEvent,
dispatchEventToSelf,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents_NoClientCode,
getComponents,
getCursorTarget,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
getMouseEventTarget,
getPreferredSize,
getWindow,
insets,
invalidate,
invalidateTree,
isAncestorOf,
layout,
lightweightPrint,
list,
list,
locate,
minimumSize,
paint,
paintComponents,
postsOldMouseEvents,
preferredSize,
print,
printComponents,
printHeavyweightComponents,
printOneComponent,
processContainerEvent,
proxyEnableEvents,
proxyRequestFocus,
remove,
removeAll,
removeContainerListener,
setFont,
updateCursor,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
areInputMethodsEnabled,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont_NoClientCode,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputMethodRequests,
getIntrinsicCursor,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getNativeContainer,
getParent_NoClientCode,
getParent,
getPeer,
getSize,
getSize,
getToolkitImpl,
getTreeLock,
getWidth,
getWindowForObject,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isEnabledImpl,
isFocusTraversable,
isLightweight,
isOpaque,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
prepareImage,
prepareImage,
printAll,
processComponentEvent,
processFocusEvent,
processInputMethodEvent,
processMouseEvent,
processMouseMotionEvent,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
size,
toString,
transferFocus |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
Field Detail |
static java.lang.String titleStr
javax.swing.JFileChooser fc
ExtensionFileFilter effJpeg
ExtensionFileFilter effSchema
javax.swing.JButton applyButton
javax.swing.JButton nextButton
javax.swing.JButton prevButton
javax.swing.JComboBox langsel
ScaledPhoto photo
SchemaTabbedPane dataPane
javax.swing.JMenuBar menuBar
javax.swing.JMenu fileMenu
javax.swing.JMenu imageMenu
javax.swing.JMenu aboutMenu
javax.swing.JMenu toggleSchemaMenu
javax.swing.JMenu selectImageMenu
javax.swing.JMenuItem applyItem
javax.swing.JMenuItem nextItem
javax.swing.JMenuItem prevItem
javax.swing.JMenuItem extractRaw
javax.swing.JMenuItem insertRaw
javax.swing.JMenuItem importRdf
javax.swing.JMenuItem exportRdf
javax.swing.JCheckBoxMenuItem[] toggleSchemaItem
javax.swing.ButtonGroup selectImageGroup
javax.swing.JRadioButtonMenuItem[] selectImageItems
RdfPicCore core
boolean ignoreToggle
static final java.lang.String separatorStr
Constructor Detail |
public SimpleUI()
Method Detail |
public void windowActivated(java.awt.event.WindowEvent e)
public void windowDeactivated(java.awt.event.WindowEvent e)
public void windowIconified(java.awt.event.WindowEvent e)
public void windowDeiconified(java.awt.event.WindowEvent e)
public void windowOpened(java.awt.event.WindowEvent e)
public void windowClosed(java.awt.event.WindowEvent e)
public void windowClosing(java.awt.event.WindowEvent e)
public void go(RdfPicCore core)
void checkEnabledStatus()
void checkEnabledStatus(int index)
void genToggleSchema()
void genSelectImageItems()
public void addingSchema()
public void enablingSchema(int index)
public void disablingSchema(int index)
public void itemStateChanged(java.awt.event.ItemEvent e)
void jumpSafe(boolean safe)
void writeEnable(boolean safe)
public void isJumping(int newindex)
newindex
- Index of the file being loaded.public void imgVUpdate()
public void hasJumped(java.lang.String errMsg)
errMsg
- null on success, explanation on error.public void actionPerformed(java.awt.event.ActionEvent e)
public boolean checkInput(java.lang.String msgID, java.lang.String input)
input
- The user's input.msgID
- An ID for the message, to allow one checker to check several messages.public void quit()
private void yetTodo(java.lang.String msg)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |