public class ViewMainFrame extends AbstractView implements jfd.ale.FieldToComponentMapper
Modifier and Type | Class and Description |
---|---|
(package private) class |
ViewMainFrame.FocusRequester |
protected class |
ViewMainFrame.GlobalUndoableEditListener
Listens for undoable stuff.
|
(package private) class |
ViewMainFrame.NeedsSavingDialogCloser |
(package private) class |
ViewMainFrame.RedoAction
Handles redo.
|
(package private) class |
ViewMainFrame.ScrapeableFileHTTPTransactionComparerLauncher |
(package private) class |
ViewMainFrame.StatusBarBlanker
Handles blanking the status bar out after a period of time.
|
(package private) class |
ViewMainFrame.UndoAction
Handles undo.
|
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
log
Used for logging.
|
(package private) javax.swing.border.Border |
selectedButtonBorder |
(package private) javax.swing.border.Border |
unselectedButtonBorder |
Constructor and Description |
---|
ViewMainFrame()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
displaySettingsFrame()
Displays the settings frame.
|
static javax.swing.JFrame |
getMainFrame()
A static method to get a reference to the view.
|
java.awt.Component |
getRenderer()
Returns the component this view is rendered on, in the event that it needs to be referenced by an external source.
|
void |
handleAppEvent(AppEvent ape)
Allows the class to handle AppEvents.
|
void |
init(SplashScreen splashScreen)
Initializes the class.
|
java.awt.Component |
mapToComponent(java.lang.reflect.Field f)
Needed for ALE to work.
|
static void |
notifyOfCorruptDatabase()
Notifies the user that the database is corrupted.
|
static void |
notifyOfWriteFileError(java.lang.String files)
Notifies the user that the database is corrupted.
|
void |
setTextComponentToSearch(javax.swing.text.JTextComponent textComponent)
Sets the text component to be searched by the find dialog box.
|
static void |
updateSaveWidgets(boolean enabled)
Enables/disables the save widgets according to the current state.
|
void |
vl(boolean exitOnFailure)
Validates that an email address represents a registered licensee.
|
getController, setController
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
public static org.apache.log4j.Logger log
javax.swing.border.Border unselectedButtonBorder
javax.swing.border.Border selectedButtonBorder
public static javax.swing.JFrame getMainFrame()
JFrame
.public void init(SplashScreen splashScreen)
splashScreen
- A SplashScreen
.public void vl(boolean exitOnFailure)
exitOnFailure
- Whether or not the app should exit if the validation fails.public void displaySettingsFrame()
public static void notifyOfWriteFileError(java.lang.String files)
public static void notifyOfCorruptDatabase()
public static void updateSaveWidgets(boolean enabled)
enabled
- Whether or not the widgets should be enabled.public void setTextComponentToSearch(javax.swing.text.JTextComponent textComponent)
textComponent
- The JTextComponent
.public void handleAppEvent(AppEvent ape)
handleAppEvent
in class AbstractView
ape
- An AppEvent
.public java.awt.Component getRenderer()
getRenderer
in class AbstractView
public java.awt.Component mapToComponent(java.lang.reflect.Field f) throws java.lang.Exception
mapToComponent
in interface jfd.ale.FieldToComponentMapper
java.lang.Exception