public abstract class SOCRApplet2
extends javax.swing.JApplet
The contentPane is a split Pane, the left pane is called fControlPane, it has
a JComboBox, an Panel for buttons, if the getCurrentItem() return a
IValueSettable it will add valueSetters automatically. You dont have to
construct it from scratch. Instead, you just provide in the method initGUI()
a implementedFile
a value to let the JComboBox to initilize
from the file. Using addButton() to add Button to it. Subclasses also should
implement or override the following mehtods initGUI(),itemChanged() for
detailed information, see javadoc of these methods
Modifier and Type | Class and Description |
---|---|
static class |
SOCRApplet2.SOCRTextArea |
javax.swing.JApplet.AccessibleJApplet
java.applet.Applet.AccessibleApplet
Modifier and Type | Field and Description |
---|---|
protected java.net.URL |
codeBase |
protected java.lang.String |
controlPanelTitle |
protected javax.swing.JPanel |
fControlPanel
Controlpane has two component, north and valueSetterPane
|
protected javax.swing.JScrollBar |
fControlPaneScrollBar |
protected javax.swing.JScrollPane |
fPresentPanel |
protected javax.swing.JScrollBar |
fPresentPaneScrollBar |
protected java.lang.String |
implementedFile |
protected javax.swing.Box |
north |
static java.awt.Color |
textColor |
static java.awt.Font |
textFont |
accessibleContext, rootPane, rootPaneCheckingEnabled
Constructor and Description |
---|
SOCRApplet2() |
Modifier and Type | Method and Description |
---|---|
void |
addButton(javax.swing.JButton b) |
void |
addButton(java.lang.String text,
java.awt.event.ActionListener l) |
void |
addButton(java.lang.String text,
java.lang.String toolTipText,
java.awt.event.ActionListener l) |
void |
addButton2(java.lang.String text,
java.lang.String toolTipText,
java.awt.event.ActionListener l) |
void |
addJCheckBox(javax.swing.JCheckBox b) |
void |
addJLabel(java.lang.String b) |
void |
addJPanel(javax.swing.JPanel jp) |
void |
addJScrollPane(javax.swing.JScrollPane jp) |
void |
addJTextField(javax.swing.JTextField b) |
void |
addRadioButton(java.lang.String text,
java.lang.String toolTipText,
java.lang.String[] bValues,
int defaultIndex,
java.awt.event.ActionListener l) |
void |
addRadioButton2(java.lang.String text,
java.lang.String toolTipText,
java.lang.String[] bValues,
int defaultIndex,
java.awt.event.ActionListener l) |
void |
addRadioButtons(javax.swing.JPanel group,
java.lang.String label) |
void |
clearvalueSetterPane() |
static java.lang.String |
format(double x) |
java.lang.String |
getAppletInfo() |
abstract java.lang.Object |
getCurrentItem() |
void |
init() |
protected void |
initGUI()
initialize gui, however it don't have to create Controlpane from scratch,
it should itialize the implementedFile add invoke addButton() to add
buttons, if it is necessary
|
protected void |
itemChanged(java.lang.String className)
subclass should implement this method to do whatever needed coressponding
the itemchanged event of JComboBox.
|
protected void |
packControlPane() |
void |
popInfo(java.lang.String noConnectionInfo,
java.net.URL isConnectedUrl,
java.lang.String target) |
void |
removeComponent(int pos) |
void |
start() |
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
destroy, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus, stop
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final java.awt.Color textColor
public static final java.awt.Font textFont
protected java.net.URL codeBase
protected javax.swing.JPanel fControlPanel
protected javax.swing.JScrollBar fControlPaneScrollBar
protected javax.swing.JScrollBar fPresentPaneScrollBar
protected javax.swing.JScrollPane fPresentPanel
protected java.lang.String controlPanelTitle
protected java.lang.String implementedFile
protected javax.swing.Box north
public void init()
init
in class java.applet.Applet
public void start()
start
in class java.applet.Applet
protected void initGUI()
protected void itemChanged(java.lang.String className)
className
- className what need be instantiatedpublic abstract java.lang.Object getCurrentItem()
protected void packControlPane()
public void addButton(java.lang.String text, java.awt.event.ActionListener l)
public void addRadioButtons(javax.swing.JPanel group, java.lang.String label)
public void addButton(java.lang.String text, java.lang.String toolTipText, java.awt.event.ActionListener l)
public void addButton2(java.lang.String text, java.lang.String toolTipText, java.awt.event.ActionListener l)
public void removeComponent(int pos)
public void addJScrollPane(javax.swing.JScrollPane jp)
public void addRadioButton(java.lang.String text, java.lang.String toolTipText, java.lang.String[] bValues, int defaultIndex, java.awt.event.ActionListener l)
public void addRadioButton2(java.lang.String text, java.lang.String toolTipText, java.lang.String[] bValues, int defaultIndex, java.awt.event.ActionListener l)
public void addButton(javax.swing.JButton b)
public void addJCheckBox(javax.swing.JCheckBox b)
public void addJTextField(javax.swing.JTextField b)
public void addJLabel(java.lang.String b)
public void addJPanel(javax.swing.JPanel jp)
public void clearvalueSetterPane()
public java.lang.String getAppletInfo()
getAppletInfo
in class java.applet.Applet
public static java.lang.String format(double x)
public void popInfo(java.lang.String noConnectionInfo, java.net.URL isConnectedUrl, java.lang.String target)