org.sourcejammer.client.gui.dialog.prefs
Class AdvancedPanel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--org.sourcejammer.client.gui.dialog.prefs.AdvancedPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class AdvancedPanel
extends javax.swing.JPanel

Title: $FileName: AdvancedPanel.java$

Version:
$VerNum: 2$
Author:
$AuthorName: Rob MacGrogan$

$Description: Advanced settings.$
$KeyWordsOff: $
See Also:
Serialized Form

Field Summary
private  com.pallas.swing.PIntField chunk
           
private  com.pallas.swing.PIntField compress
           
private  javax.swing.JComboBox eol
           
private  int eolType
           
private  javax.swing.JTextField hide
           
private  java.lang.String[] hideCommand
           
private  AdvancedPanel instance
           
private  javax.swing.JTextField keystore
           
private  java.lang.String keystoreFile
           
private  java.lang.String[] makeWritableCommand
           
private  int maxChunkSize
           
private  int minCompressSize
           
private  java.awt.Component parent
           
private  javax.swing.JTextField unhide
           
private  java.lang.String[] unhideCommand
           
private  javax.swing.JTextField writable
           
 
Fields inherited from class javax.swing.JPanel
 
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.Container
 
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
AdvancedPanel(javax.swing.JDialog parent)
           
AdvancedPanel(javax.swing.JFrame parent)
           
 
Method Summary
private  javax.swing.JTextField buildCmdField(java.lang.String[] command)
           
private  javax.swing.JComboBox buildEOLTypeSelector()
           
private  javax.swing.JPanel buildKeystoreFileSelector()
           
 void buildPanel()
           
private  java.lang.String commandToString(java.lang.String[] cmd)
           
 int getEolType()
          Returns the eolType.
 java.lang.String[] getHideCommand()
          Returns the hideCommand.
 java.lang.String getKeystoreFile()
          Returns the keystoreFile.
 java.lang.String[] getMakeWritableCommand()
          Returns the makeWritableCommand.
 int getMaxChunkSize()
          Returns the maxChunkSize.
 int getMinCompressSize()
          Returns the minCompressSize.
 java.lang.String[] getUnhideCommand()
          Returns the unhideCommand.
private  javax.swing.JButton makeBrowseButton()
          Build the browse button and add it's action.
private  javax.swing.JTextField makeToLocationTextBox(java.lang.String file)
           
 void setEolType(int eolType)
          Sets the eolType.
 void setHideCommand(java.lang.String[] hideCommand)
          Sets the hideCommand.
 void setKeystoreFile(java.lang.String keystoreFile)
          Sets the keystoreFile.
 void setMakeWritableCommand(java.lang.String[] makeWritableCommand)
          Sets the makeWritableCommand.
 void setMaxChunkSize(int maxChunkSize)
          Sets the maxChunkSize.
 void setMinCompressSize(int minCompressSize)
          Sets the minCompressSize.
 void setUnhideCommand(java.lang.String[] unhideCommand)
          Sets the unhideCommand.
private  java.lang.String[] stringToCommand(java.lang.String s)
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, 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, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, 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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, 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

makeWritableCommand

private java.lang.String[] makeWritableCommand

hideCommand

private java.lang.String[] hideCommand

unhideCommand

private java.lang.String[] unhideCommand

maxChunkSize

private int maxChunkSize

minCompressSize

private int minCompressSize

eolType

private int eolType

keystoreFile

private java.lang.String keystoreFile

writable

private javax.swing.JTextField writable

hide

private javax.swing.JTextField hide

unhide

private javax.swing.JTextField unhide

chunk

private com.pallas.swing.PIntField chunk

compress

private com.pallas.swing.PIntField compress

eol

private javax.swing.JComboBox eol

keystore

private javax.swing.JTextField keystore

instance

private AdvancedPanel instance

parent

private java.awt.Component parent
Constructor Detail

AdvancedPanel

public AdvancedPanel(javax.swing.JFrame parent)

AdvancedPanel

public AdvancedPanel(javax.swing.JDialog parent)
Method Detail

buildPanel

public void buildPanel()

buildKeystoreFileSelector

private javax.swing.JPanel buildKeystoreFileSelector()

makeToLocationTextBox

private javax.swing.JTextField makeToLocationTextBox(java.lang.String file)

makeBrowseButton

private javax.swing.JButton makeBrowseButton()
Build the browse button and add it's action.


buildCmdField

private javax.swing.JTextField buildCmdField(java.lang.String[] command)

commandToString

private java.lang.String commandToString(java.lang.String[] cmd)

stringToCommand

private java.lang.String[] stringToCommand(java.lang.String s)

buildEOLTypeSelector

private javax.swing.JComboBox buildEOLTypeSelector()

getEolType

public int getEolType()
Returns the eolType.

Returns:
int

getHideCommand

public java.lang.String[] getHideCommand()
Returns the hideCommand.

Returns:
String[]

getMakeWritableCommand

public java.lang.String[] getMakeWritableCommand()
Returns the makeWritableCommand.

Returns:
String[]

getMaxChunkSize

public int getMaxChunkSize()
Returns the maxChunkSize.

Returns:
int

getMinCompressSize

public int getMinCompressSize()
Returns the minCompressSize.

Returns:
int

getUnhideCommand

public java.lang.String[] getUnhideCommand()
Returns the unhideCommand.

Returns:
String[]

setEolType

public void setEolType(int eolType)
Sets the eolType.

Parameters:
eolType - The eolType to set

setHideCommand

public void setHideCommand(java.lang.String[] hideCommand)
Sets the hideCommand.

Parameters:
hideCommand - The hideCommand to set

setMakeWritableCommand

public void setMakeWritableCommand(java.lang.String[] makeWritableCommand)
Sets the makeWritableCommand.

Parameters:
makeWritableCommand - The makeWritableCommand to set

setMaxChunkSize

public void setMaxChunkSize(int maxChunkSize)
Sets the maxChunkSize.

Parameters:
maxChunkSize - The maxChunkSize to set

setMinCompressSize

public void setMinCompressSize(int minCompressSize)
Sets the minCompressSize.

Parameters:
minCompressSize - The minCompressSize to set

setUnhideCommand

public void setUnhideCommand(java.lang.String[] unhideCommand)
Sets the unhideCommand.

Parameters:
unhideCommand - The unhideCommand to set

getKeystoreFile

public java.lang.String getKeystoreFile()
Returns the keystoreFile.

Returns:
String

setKeystoreFile

public void setKeystoreFile(java.lang.String keystoreFile)
Sets the keystoreFile.

Parameters:
keystoreFile - The keystoreFile to set


Copyright © 2003 Soucejammer project.