com.swfm.mica.widgets
Class MiInternalWindow

java.lang.Object
  extended bycom.swfm.mica.core.MiPart
      extended bycom.swfm.mica.core.MiContainer
          extended bycom.swfm.mica.core.MiEditor
              extended bycom.swfm.mica.core.MiWindow
                  extended bycom.swfm.mica.widgets.MiInternalWindow
All Implemented Interfaces:
MiiActionTypes, MiiAttributeTypes, MiiCommandHandler, MiiCommandNames, MiiDragAndDropParticipant, MiiEventTypes, MiiNames, MiiPropertyTypes, MiiScrollableData, MiiTypes
Direct Known Subclasses:
MiDialog

public class MiInternalWindow
extends MiWindow
implements MiiCommandHandler, MiiCommandNames

Version:
%I% %G%
Author:
Michael L. Davis

Field Summary
static java.lang.String Mi_ICONIC_REPRESENTATION_WINDOW
           
                   
Constructor Summary
MiInternalWindow(MiPart parent, java.lang.String title, MiBounds windowSize, boolean modal)
           
 
Method Summary
 void deIconify()
           
 void dispose()
           
 MiPart getCloseButton()
           
 MiPart getFullScreenButton()
           
 MiPart getIconifyButton()
           
 MiPart getIconizedAppearance()
           
 MiPart getParent()
           
 java.lang.String getTitle()
           
 MiWindowBorder getWindowBorder()
           
 void iconify()
           
 boolean isFullScreen()
           
 void layoutParts()
          Call any layout to validate itself.
 void processCommand(java.lang.String command)
          Processes the given command.
 void setIconizedAppearance(MiPart icon)
           
 void setIsEmbeddedWindow(boolean flag)
          Specifies whether this window is treated as a part of it's Mica container or as an attachment of it's container.
 void setTitle(java.lang.String title)
          Sets the title text in the border of the window.
 void setVisible(boolean flag)
          Specifies whether this MiPart is visible.
 void setWindowBorder(MiWindowBorder border)
           
 void toggleFullScreen()
           
 java.lang.String toString()
          Returns information about this MiPart.
 
Methods inherited from class com.swfm.mica.core.MiWindow
appendGlobalEventHandler, createGraphicsContents, dispatchEvent, draw, exposeArea, getAnimationManager, getCanvas, getDragAndDropManager, getGlobalEventHandler, getGrabEventHandler, getKeyboardFocusManager, getKeyFocusTraversalGroup, getNumberOfGlobalEventHandlers, getNumberOfGrabEventHandlers, getStatusBarFocusManager, insertGlobalEventHandler, invalidateEditorPartLayout, isConsumingAllEventsWheneverAnyEventIsGrabbed, isEmbeddedWindow, isRootWindow, needsToBeRedrawn, prependGrabEventHandler, pushBackEvent, removeGlobalEventHandler, removeGrabEventHandler, requestEnterKeyFocus, requestKeyboardFocus, resume, setConsumingAllEventsWheneverAnyEventIsGrabbed, setDefaultEnterKeyFocus, setDefaultKeyboardFocus, setKeyFocusTraversalGroup, setStatusBarFocusManager, setStatusBarFocusMessage, stop, suspend, validateLayout
 
Methods inherited from class com.swfm.mica.core.MiEditor
appendItem, appendLayer, autopanForMovingObj, calcMinimumSize, calcPreferredSize, containsItem, copy, deSelect, deSelectAll, endOverrideMouseAppearance, getActiveLayer, getAFewSelectedParts, getAutopanningCanExpandUniverse, getCurrentConnectionLayer, getCurrentLayer, getDeviceBounds, getDeviceBounds, getFilter, getIndexOfItem, getIndexOfLayer, getInnerBounds, getItem, getItem, getIterator, getLayer, getMouseAppearance, getMousePosition, getMousePosition, getNormalizedHorizontalAmountVisible, getNormalizedHorizontalPosition, getNormalizedVerticalAmountVisible, getNormalizedVerticalPosition, getNumberOfItems, getNumberOfLayers, getNumberOfPartsSelected, getPageManager, getRenderer, getSelectedParts, getSelectionManager, getSnapManager, getTransform, getTransformFromHereToRoot, getUniverseBounds, getUniverseBounds, getViewport, getViewportSizeLayout, getWorldBounds, getWorldBounds, hasLayers, hasValidLayout, insertItem, insertLayer, invalidateLayout, isBitbltScrollingEnabled, isHandlingScrollingDiscreteAmountsLocally, isLayer, overrideMouseAppearance, popMouseAppearance, pushMouseAppearance, reCalcBounds, reCalcBoundsOfContents, removeAllItems, removeItem, removeItem, removeLayer, render, restoreNormalMouseAppearance, scale, scrollChunkDown, scrollChunkLeft, scrollChunkRight, scrollChunkUp, scrollLineDown, scrollLineLeft, scrollLineRight, scrollLineUp, scrollPageDown, scrollPageLeft, scrollPageRight, scrollPageUp, scrollToBottom, scrollToLeftSide, scrollToNormalizedHorizontalPosition, scrollToNormalizedVerticalPosition, scrollToRightSide, scrollToTop, select, selectAdditional, setActiveLayer, setAutopanningCanExpandUniverse, setBitbltScrollingEnabled, setBounds, setCurrentConnectionLayer, setCurrentLayer, setCurrentLayer, setDeviceBounds, setFilter, setHasLayers, setItem, setLayer, setMouseAppearance, setMousePosition, setPageManager, setSelectionManager, setSnapManager, setUniverseBounds, setViewportSizeLayout, setWorldBounds, snapMovingPart, snapMovingPoint, snapPart, transformFromChildSpace, transformLocalWorldToRootWorld, transformRootWorldToLocalWorld, transformToChildSpace, transformToOtherEditorSpace, translate, translatePart, updateLayerBounds
 
Methods inherited from class com.swfm.mica.core.MiContainer
appendPart, containsPart, deepCopy, doImport, getIndexOfPart, getIntersectionWithLine, getKeepConnectionsBelowNodes, getNumberOfParts, getPart, getPart, getSupportedImportFormats, hasEventHandlers, hasValidCachedEventHandlerInfo, insertPart, invalidateCachedEventHandlerInfo, isContainerOf, isContainerOf, isContainerOfWithAttachments, pick, pickDeepListContents, pickObject, removeAllParts, removePart, removePart, setKeepConnectionsBelowNodes, setPart, translate
 
Methods inherited from class com.swfm.mica.core.MiPart
_reCalcBounds, _render, _replaceBounds, _setContainer, _setDrawManager, _setValidatingLayout, appendActionHandler, appendActionHandler, appendActionHandler, appendActionHandler, appendActionHandler, appendAttachment, appendAttachment, appendCommandHandler, appendCommandHandler, appendCommandHandler, appendConnection, appendContainer, appendEventHandler, appendPoint, appendPoint, applyCustomLookAndFeel, containsOpaqueRectangles, copy, deleteAllConnections, deleteAllParts, deleteSelf, dispatchAction, dispatchAction, dispatchAction, dispatchActionRequest, dispatchActionRequest, dispatchActionRequest, doExport, drawNow, drawNow, flip, flip, freeAccessLock, get1DShapeStrokeBackgroundColor, get1DShapeStrokesFilled, getAccessLock, getActionHandler, getActionsGenerated, getActionsLocallyGenerated, getActionsRequestedFromParts, getAfterRenderer, getAlphaCompositeRenderMode, getAnnotationPointManager, getAssociatedParts, getAttachment, getAttachment, getAttachmentMargins, getAttachments, getAttributeLockMask, getAttributePublicMask, getAttributes, getAttributeValue, getBackgroundColor, getBackgroundImage, getBackgroundRenderer, getBackgroundTile, getBalloonHelp, getBeforeRenderer, getBlackColor, getBorderHiliteColor, getBorderHiliteWidth, getBorderLook, getBorderRenderer, getBounds, getBounds, getCenter, getCenter, getCenterOfRotation, getCenterX, getCenterY, getColor, getConnection, getConnectionPointManager, getContainer, getContainerRequestedActions, getContainingEditor, getContainingWindow, getContextCursor, getContextMenu, getContextMenu, getControlPointManager, getCustomLookAndFeels, getCustomLookAndFeels, getDarkColor, getDeepConnection, getDeepConnection, getDeepConnections, getDeeplyInvalidateAreas, getDefaultAttributes, getDialogHelp, getDoubleBuffer, getDragAndDropBehavior, getDrawBounds, getDrawManager, getEventHandler, getEventHandler, getEventHandlerWithClass, getEventHandlingDisabledByContainer, getEventHandlingEnabled, getFlipped, getFont, getFontHorizontalJustification, getFontPointSize, getFontVerticalJustification, getHasBorderHilite, getHasShadow, getHeight, getID, getIncomingInvalidLayoutNotificationsEnabled, getInnerBounds, getInvalidAreaNotificationsEnabled, getInvalidLayoutNotificationsEnabled, getLayout, getLayoutManipulator, getLightColor, getLineEndSize, getLineEndsRenderer, getLineEndsSizeFnOfLineWidth, getLineEndStyle, getLineStartSize, getLineStartStyle, getLineStyle, getLineWidth, getLocallyRequestedEventTypes, getManipulator, getMargins, getMaximumHeight, getMaximumWidth, getMinimumHeight, getMinimumPickAreaSize, getMinimumSize, getMinimumWidth, getName, getNumberOfActionHandlers, getNumberOfAttachments, getNumberOfConnections, getNumberOfContainers, getNumberOfDeepConnections, getNumberOfEventHandlers, getNumberOfPoints, getNumberOfResources, getOutgoingInvalidLayoutNotificationsEnabled, getPoint, getPoint, getPointEntryAngle, getPointExitAngle, getPointX, getPointY, getPreferredSize, getPropertyDescriptions, getPropertyValue, getPrototypeManipulator, getRelativeLocation, getResource, getResourceName, getRootWindow, getRotation, getSelectionGraphics, getShadowColor, getShadowDirection, getShadowLength, getShadowRenderer, getShadowShape, getShadowStyle, getSize, getSnapPointManager, getStatusHelp, getSupportedExportFormats, getThisOrPartHasInvalidArea, getToolHintHelp, getTotalNumberOfPartsCreated, getTransparency, getValidatingLayout, getVisibilityAnimator, getWhiteColor, getWidth, getWriteMode, getXmax, getXmin, getXorColor, getYmax, getYmin, hasAttachment, hasAttribute, hasEnterKeyFocus, hasEventHandler, hasFixedAspectRatio, hasFixedHeight, hasFixedWidth, hasKeyboardFocus, hasMouseFocus, hasOverriddenMinimumSize, hasOverriddenPreferredSize, hasProperty, hasTotallyInvalidArea, insertActionHandler, insertActionHandler, insertActionHandler, insertConnection, insertContainer, insertEventHandler, insertPoint, insertPoint, invalidateArea, invalidateArea, isAcceptingEnterKeyFocus, isAcceptingKeyboardFocus, isAcceptingMouseFocus, isAcceptingTabKeys, isActionDispatchingEnabled, isConnectable, isConnectedTo, isCopyable, isCopyableAsPartOfCopyable, isDeletable, isDoubleBuffered, isDragAndDropSource, isDragAndDropTarget, isFilled, isFontBold, isFontItalic, isFontUnderlined, isHidden, isMovable, isOpaqueRectangle, isPickable, isPickableWhenTransparent, isPrintable, isSavable, isSelectable, isSelected, isSensitive, isShowing, isSnappable, isUngroupable, isValidConnectionDestination, isValidConnectionSource, isVisible, makeImageFromArea, makeLayoutManipulator, makeManipulator, optimizedInvalidateArea, optimizedInvalidateDrawBoundsArea, overrideAttributes, overrideEventHandlingDisabledByContainer, packLayout, pickDeepList, preRenderToDoubleBuffer, refreshBounds, refreshLookAndFeel, refreshLookAndFeel, removeActionHandler, removeActionHandler, removeActionHandlers, removeAllActionHandlers, removeAllAttachments, removeAllConnections, removeAllEventHandlers, removeAllManipulators, removeAttachment, removeAttachment, removeCommandHandler, removeCommandHandler, removeConnection, removeConnection, removeContainer, removeContainer, removeEventHandler, removeFromAllContainers, removePoint, removeResource, removeSelf, replaceDrawBounds, replaceSelf, requestEnterKeyFocus, requestKeyboardFocus, rotate, rotate, rotateTo, scale, scale, select, set1DShapeStrokeBackgroundColor, set1DShapeStrokesFilled, setAcceptingEnterKeyFocus, setAcceptingKeyboardFocus, setAcceptingMouseFocus, setAcceptingTabKeys, setActionDispatchingEnabled, setAfterRenderer, setAlphaCompositeRenderMode, setAnnotationPointManager, setAttachmentDrawnAfter, setAttachmentMargins, setAttachmentsVisibility, setAttributeLockMask, setAttributePublicMask, setAttributes, setAttributeValue, setAttributeValue, setAttributeValue, setAttributeValue, setAttributeValue, setBackgroundColor, setBackgroundColor, setBackgroundImage, setBackgroundRenderer, setBackgroundTile, setBalloonHelp, setBalloonHelpMessage, setBeforeRenderer, setBlackColor, setBorderHiliteColor, setBorderHiliteWidth, setBorderLook, setBorderRenderer, setBounds, setCenter, setCenter, setCenterX, setCenterY, setColor, setColor, setConnectable, setConnectionPointManager, setContextCursor, setContextMenu, setControlPointManager, setCopyable, setCopyableAsPartOfCopyable, setCustomLookAndFeels, setCustomLookAndFeels, setDarkColor, setDeeplyInvalidateAreas, setDefaultAttributes, setDeletable, setDialogHelp, setDialogHelpMessage, setDoubleBuffer, setDoubleBuffered, setDragAndDropBehavior, setEventHandlingEnabled, setFilled, setFixedAspectRatio, setFixedHeight, setFixedWidth, setFont, setFontBold, setFontHorizontalJustification, setFontItalic, setFontPointSize, setFontUnderlined, setFontVerticalJustification, setHasBorderHilite, setHasShadow, setHeight, setHidden, setIncomingInvalidLayoutNotificationsEnabled, setInvalidAreaNotificationsEnabled, setInvalidLayoutNotificationsEnabled, setIsDragAndDropSource, setIsDragAndDropTarget, setIsOpaqueRectangle, setLayout, setLightColor, setLineEndSize, setLineEndSizeFnOfLineWidth, setLineEndsRenderer, setLineEndStyle, setLineStartSize, setLineStartStyle, setLineStyle, setLineWidth, setMargins, setMaximumHeight, setMaximumWidth, setMinimumHeight, setMinimumPickAreaSize, setMinimumSize, setMinimumWidth, setMouseFocus, setMovable, setName, setNumberOfPoints, setOutgoingInvalidLayoutNotificationsEnabled, setPickable, setPickableWhenTransparent, setPoint, setPoint, setPreferredSize, setPrintable, setPropertyValue, setPropertyValues, setPrototypeManipulator, setResource, setSavable, setSelectable, setSelectionGraphics, setSensitive, setShadowColor, setShadowDirection, setShadowLength, setShadowRenderer, setShadowStyle, setSize, setSize, setSnappable, setSnapPointManager, setStatusHelp, setStatusHelpMessage, setSupportedImportFormats, setToolHintHelp, setToolHintMessage, setTransparency, setTransparency, setUngroupable, setVisibilityAnimator, setWhiteColor, setWidth, setWriteMode, setXmax, setXmin, setXorColor, setYmax, setYmin, supportsImportOfSpecificInstance, translate, translatePoint, validatePropertyValue, waitUntilRedrawn
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Mi_ICONIC_REPRESENTATION_WINDOW

public static java.lang.String Mi_ICONIC_REPRESENTATION_WINDOW
Constructor Detail

MiInternalWindow

public MiInternalWindow(MiPart parent,
                        java.lang.String title,
                        MiBounds windowSize,
                        boolean modal)
Method Detail

setTitle

public void setTitle(java.lang.String title)
Description copied from class: MiWindow
Sets the title text in the border of the window.

Overrides:
setTitle in class MiWindow
Parameters:
title - the title text

getTitle

public java.lang.String getTitle()

getWindowBorder

public MiWindowBorder getWindowBorder()

setWindowBorder

public void setWindowBorder(MiWindowBorder border)

getIconifyButton

public MiPart getIconifyButton()

getCloseButton

public MiPart getCloseButton()

getFullScreenButton

public MiPart getFullScreenButton()

getParent

public MiPart getParent()

setIconizedAppearance

public void setIconizedAppearance(MiPart icon)

getIconizedAppearance

public MiPart getIconizedAppearance()

setVisible

public void setVisible(boolean flag)
Description copied from class: MiWindow
Specifies whether this MiPart is visible. In addition, if this is a root window and it has just been made visible, then the keyboard focus manager initializes the keyboard and enter-key focus to their default initial settings.

Overrides:
setVisible in class MiWindow
Parameters:
flag - true if this MiPart is to be visible
See Also:
MiPart.setVisible(boolean), MiWindow.setDefaultKeyboardFocus(com.swfm.mica.core.MiPart), MiWindow.setDefaultEnterKeyFocus(com.swfm.mica.core.MiPart)

dispose

public void dispose()

layoutParts

public void layoutParts()
Description copied from class: MiPart
Call any layout to validate itself. Not usually called directly, call validateLayout() instead.

Overrides:
layoutParts in class MiPart

iconify

public void iconify()

deIconify

public void deIconify()

isFullScreen

public boolean isFullScreen()

toggleFullScreen

public void toggleFullScreen()

setIsEmbeddedWindow

public void setIsEmbeddedWindow(boolean flag)
Description copied from class: MiWindow
Specifies whether this window is treated as a part of it's Mica container or as an attachment of it's container. This is only useful if this is a Mica window (i.e. MiInternalWindow).

Overrides:
setIsEmbeddedWindow in class MiWindow
Parameters:
flag - true if an embedded window

processCommand

public void processCommand(java.lang.String command)
Processes the given command.

Specified by:
processCommand in interface MiiCommandHandler
Parameters:
command - the command to execute

toString

public java.lang.String toString()
Description copied from class: MiPart
Returns information about this MiPart.

Overrides:
toString in class MiPart
Returns:
textual information (class name + unique numerical id + name)