uk.org.arlott.simon.hw.f24.lbsta
Class ScriptEdit.Entry

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by uk.org.arlott.simon.hw.f24.lbsta.ScriptEdit.Entry
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible
Enclosing class:
ScriptEdit

private class ScriptEdit.Entry
extends javax.swing.JPanel
implements java.awt.event.ActionListener

Handles the changing of settings of script elements.


Nested Class Summary
private  class ScriptEdit.Entry.Action
          Handles the changing of settings of script actions.
private  class ScriptEdit.Entry.State
          Handles the changing of settings of script states.
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  ScriptEdit.Entry.Action a
          The ScriptAction object.
private  javax.swing.JPanel borderBottom
          The bottom border.
private  javax.swing.JPanel borderTop
          The top border.
private  javax.swing.JButton delete
          Delete this element button.
private  ScriptEdit e
          The ScriptEdit mode object.
private  int id
          This element's ID.
private  javax.swing.JPanel leftPanel
          The left panel with type combo box.
private  javax.swing.JButton makeNew
          Make a new element after this one button.
private  javax.swing.JButton moveDown
          Move this element down button.
private  javax.swing.JButton moveUp
          Move this element up button.
private  javax.swing.JCheckBox pauseSetting
          The state pause setting check box.
private  javax.swing.JPanel rightGrid
          The grid containing the buttons.
private  javax.swing.JPanel rightPanel
          The right panel with up/down/del/new buttons.
private  ScriptEdit.Entry.State s
          The ScriptState object.
private  javax.swing.JComboBox type
          The element type combo box.
private  javax.swing.JPanel typePanel
          The type panel with combo box and pause check box.
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
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
ScriptEdit.Entry(ScriptEdit e, int id)
          Creates a new Entry object.
ScriptEdit.Entry(ScriptEdit e, int id, ScriptComponent sc)
          Creates a new Entry object.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          Handles button presses and type changes.
 void changed(ScriptComponent sc)
          Updates the element when it is changed.
 void setCurrent(boolean current)
          Marks this element as the current one in the script.
 void setID(int id)
          Updates the ID of this element.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

e

private ScriptEdit e
The ScriptEdit mode object.


id

private int id
This element's ID.


s

private ScriptEdit.Entry.State s
The ScriptState object.


a

private ScriptEdit.Entry.Action a
The ScriptAction object.


borderTop

private javax.swing.JPanel borderTop
The top border.


borderBottom

private javax.swing.JPanel borderBottom
The bottom border.


leftPanel

private javax.swing.JPanel leftPanel
The left panel with type combo box.


typePanel

private javax.swing.JPanel typePanel
The type panel with combo box and pause check box.


type

private javax.swing.JComboBox type
The element type combo box.


pauseSetting

private javax.swing.JCheckBox pauseSetting
The state pause setting check box.


rightPanel

private javax.swing.JPanel rightPanel
The right panel with up/down/del/new buttons.


rightGrid

private javax.swing.JPanel rightGrid
The grid containing the buttons.


moveUp

private javax.swing.JButton moveUp
Move this element up button.


moveDown

private javax.swing.JButton moveDown
Move this element down button.


delete

private javax.swing.JButton delete
Delete this element button.


makeNew

private javax.swing.JButton makeNew
Make a new element after this one button.

Constructor Detail

ScriptEdit.Entry

public ScriptEdit.Entry(ScriptEdit e,
                        int id)
Creates a new Entry object.

Parameters:
e - The ScriptEdit mode object.
id - The id for this element.

ScriptEdit.Entry

public ScriptEdit.Entry(ScriptEdit e,
                        int id,
                        ScriptComponent sc)
Creates a new Entry object.

Parameters:
e - The ScriptEdit mode object.
id - The id for this element.
sc - The ScriptComponent that this Entry represents.
Method Detail

setID

public void setID(int id)
Updates the ID of this element.

Parameters:
id - The new ID.

setCurrent

public void setCurrent(boolean current)
Marks this element as the current one in the script.

Parameters:
current - true if this is the current script element.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Handles button presses and type changes.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
ae - The ActionEvent to be handled.

changed

public void changed(ScriptComponent sc)
Updates the element when it is changed.

Parameters:
sc - The ScriptComponent object.