mesquite.categ.lib
Class CategTModelEditWindow

java.lang.Object
  extended by mesquite.lib.MesquiteWindow
      extended by mesquite.lib.table.TableWindow
          extended by mesquite.categ.lib.CategTModelEditWindow
All Implemented Interfaces:
Commandable, FileDirtier, Listable, Logger, MesquiteListener, OwnedByModule

public class CategTModelEditWindow
extends TableWindow
implements MesquiteListener

A window that contains a table in which to edit a CategTModel. Used for Stepmatrix editing, but could also be used for other similar models


Field Summary
 
Fields inherited from class mesquite.lib.table.TableWindow
findString
 
Fields inherited from class mesquite.lib.MesquiteWindow
autoShow, cloneWindowMenuItem, closeWindowCommand, closeWindowMenuItem, compactWindows, componentsPainted, currentFont, defaultFont, dialogAnchor, disposing, doMacroCommand, explanationsMenuItem, fromScriptCommand, GUIavailable, headless, infoBar, infoBarHeightAllowance, Java2Davailable, listEmployeesCommand, menuBar, numDialogs, numDisposing, numNonWizardDialogs, ownerModule, painting, pdfOutputAvailable, printCommand, printToFitCommand, printToPDFCommand, resetMenuPending, resetMenuTime, restoreCursor, saveAsTextCommand, saveRecipeMenuItem, sendScriptCommand, sendScriptMenuItem, setFontCommand, setFontSizeCommand, showCommand, showExplanationsCommand, showFileCommand, showInfoBarCommand, showSnapshotCommand, snapshotMenuItem, startingTime, suppressAllWindows, text, tickled, totalCheckDoomedCount, totalCreated, totalDisposed, totalFinalized, undoCommand, undoer, waitCursor, windowShowTime
 
Fields inherited from interface mesquite.lib.MesquiteListener
ANNOTATION_ADDED, ANNOTATION_CHANGED, ANNOTATION_DELETED, ASSOCIATED_CHANGED, BRANCHES_REARRANGED, BRANCHLENGTHS_CHANGED, COMMAND_CANCELLED, DATA_CHANGED, ELEMENT_CHANGED, ITEMS_ADDED, NAMES_CHANGED, OBJECT_DESTROYED, PARTS_ADDED, PARTS_CHANGED, PARTS_DELETED, PARTS_MOVED, SELECTION_CHANGED, TAXA_SUBSTITUTED, TEXTFIELD_EDITED, UNKNOWN, VALUE_CHANGED
 
Constructor Summary
CategTModelEditWindow(CharModelCurator curatorModule, MesquiteModule ownerModule)
           
 
Method Summary
 void changed(java.lang.Object caller, java.lang.Object obj, Notification notification)
          passes which object changed, along with optional Notification object with details (e.g., code number (type of change) and integers (e.g.
 void dispose()
           
 void disposing(java.lang.Object obj)
          passes which object was disposed
 java.lang.Object doCommand(java.lang.String commandName, java.lang.String arguments, CommandChecker checker)
          A request for the MesquiteModule to perform a command.
 boolean getDiagnonalEditable()
           
 MesquiteTable getTable()
           
 boolean okToDispose(java.lang.Object obj, int queryUser)
          Asks whether it's ok to delete the object as far as the listener is concerned (e.g., is it in use?)
 void resetTitle()
          When called the window will determine its own title.
 void setDiagnonalEditable(boolean editable)
           
 void setMaxState(int maxState)
           
 void setModel(CategTModel model)
           
 void windowResized()
          windows with manually resized components (i.e.
 
Methods inherited from class mesquite.lib.table.TableWindow
addControlButton, copyGraphicsPanel, getClearCommand, getCopySpecialCommand, getCopySpecialName, getCutCommand, getFindLabel, getFindMessageName, getPasteCommand, getPrintToPDFMenuItemName, getSnapshot, getTextContents, paintContents, pleaseUpdate, printWindow, removeControlButton, repaintAll, resetCursor, selectAllGraphicsPanel, selectAndFocus, setCurrentTool, showFindMenuItems, windowToPDF
 
Methods inherited from class mesquite.lib.MesquiteWindow
addKeyListener, addKeyListener, addKeyListenerToAll, addLedgePanel, addSidePanel, addTool, addToWindow, addWindowListener, annotationHasFocus, belongsTo, buttonHit, centerWindow, centerWindow, centerWindow, centerWindow, centerWindow, centerWindowTile, checkDoomed, checkDoomed, checkUndoMenuStatus, closeWindow, componentAdded, componentWithFocus, contentsChanged, copy, deassignMenus, disposed, fileDirtiedByCommand, finalize, frameOfComponent, frameOfComponent, getAnnotation, getAnnotationHeight, getBackground, getBounds, getColorScheme, getContentsHeight, getContentsWidth, getCurrentObject, getCurrentTool, getExplanation, getExplanationHeight, getFitPrintObject, getFont, getFullWidth, getGraphicsArea, getHeight, getID, getInsets, getLocation, getLogText, getMaximumSize, getMenuBar, getMesquiteMenuBar, getMinimalMenus, getMinimumContentHeight, getMinimumSize, getMode, getName, getOuterContentsArea, getOwnerModule, getPalette, getParentFrame, getPasteSpecialCommand, getPasteSpecialName, getPrintMenuItem, getPrintToFitMenuItemName, getQueryMode, getQueryMode, getRank, getShowAnnotation, getShowExplanation, getShowMenuLocation, getTitle, getUndoCommand, getUndoer, getWidth, getWindowHeight, getWindowWidth, graphicsRequestFocus, heightenWindow, hide, hideClock, hideQuickMessage, incorporateSnapshot, incrementAnnotationArea, incrementExplanationArea, invalidateAll, isCompacted, isCompactible, isLoneWindow, isPoppedOut, isReadyToPaint, isReadyToPaint, isShowing, isVisible, log, logln, makeToolPalette, pack, pdfWindow, popOut, printParameters, prWindow, removeAll, removedFromParent, removeFromWindow, removeKeyListener, removeKeyListener, removeLedgePanel, removeSidePanel, removeTool, repaint, repaintAllSearchStrips, requestFocus, resetAllTitles, resetContentsSize, resetMenus, respondToQueryMode, restoreAllCursors, restoreGraphicsCursor, rpAll, saveTextToFile, searchData, selectAll, setAEFocusSuppression, setAllWaitCursors, setAnnotation, setAnnotation, setAsPrimaryMesquiteWindow, setBackground, setContentsCursor, setCurrentObject, setDefaultAnnotatable, setExplanation, setFont, setGraphicsCursor, setGraphicsDefaultCursor, setGraphicsWaitCursor, setLocation, setMenuBar, setMinimalMenus, setNewUndoState, setParentFrame, setReportMenuResets, setResizable, setShowAnnotation, setShowAnnotation, setShowExplanation, setShowExplanation, setTitle, setUndoer, setUndoer, setUndoer, setUndoMenuItemEnabled, setVisible, setVisible, setWindowFont, setWindowFont, setWindowFontSize, setWindowLocation, setWindowLocation, setWindowSize, setWindowSizeDirect, setWindowSizeForce, show, showInfoTabs, showPage, showQuickMessage, showQuickMessage, showQuickMessage, tickClock, toFront, toolTextChanged, uncheckDoomed, uncheckDoomed, updateEmployeeTree, updateTextPage, waitUntilDisposable, widenWindow, windowOfItem, windowOfItem, windowOfItem
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CategTModelEditWindow

public CategTModelEditWindow(CharModelCurator curatorModule,
                             MesquiteModule ownerModule)
Method Detail

resetTitle

public void resetTitle()
When called the window will determine its own title. MesquiteWindows need to be self-titling so that when things change (names of files, tree blocks, etc.) they can reset their titles properly

Specified by:
resetTitle in class MesquiteWindow

doCommand

public java.lang.Object doCommand(java.lang.String commandName,
                                  java.lang.String arguments,
                                  CommandChecker checker)
Description copied from class: TableWindow
A request for the MesquiteModule to perform a command. It is passed two strings, the name of the command and the arguments. This should be overridden by any module that wants to respond to a command.

Specified by:
doCommand in interface Commandable
Overrides:
doCommand in class TableWindow

dispose

public void dispose()
Overrides:
dispose in class MesquiteWindow

setModel

public void setModel(CategTModel model)

changed

public void changed(java.lang.Object caller,
                    java.lang.Object obj,
                    Notification notification)
passes which object changed, along with optional Notification object with details (e.g., code number (type of change) and integers (e.g. which character))

Specified by:
changed in interface MesquiteListener
Overrides:
changed in class MesquiteWindow

disposing

public void disposing(java.lang.Object obj)
passes which object was disposed

Specified by:
disposing in interface MesquiteListener
Overrides:
disposing in class MesquiteWindow

okToDispose

public boolean okToDispose(java.lang.Object obj,
                           int queryUser)
Asks whether it's ok to delete the object as far as the listener is concerned (e.g., is it in use?)

Specified by:
okToDispose in interface MesquiteListener
Overrides:
okToDispose in class MesquiteWindow

setMaxState

public void setMaxState(int maxState)

setDiagnonalEditable

public void setDiagnonalEditable(boolean editable)

getDiagnonalEditable

public boolean getDiagnonalEditable()

windowResized

public void windowResized()
Description copied from class: MesquiteWindow
windows with manually resized components (i.e. null layoutmanagers) can override to respond to window resizing here

Overrides:
windowResized in class MesquiteWindow

getTable

public MesquiteTable getTable()
Specified by:
getTable in class TableWindow