public class IlvInternalFrame extends JInternalFrame implements IlvMDIViewContainer
IlvMDIViewContainer
interface for
Swing internal frames.JInternalFrame.AccessibleJInternalFrame, JInternalFrame.JDesktopIcon
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
closable, CONTENT_PANE_PROPERTY, desktopIcon, FRAME_ICON_PROPERTY, frameIcon, GLASS_PANE_PROPERTY, iconable, IS_CLOSED_PROPERTY, IS_ICON_PROPERTY, IS_MAXIMUM_PROPERTY, IS_SELECTED_PROPERTY, isClosed, isIcon, isMaximum, isSelected, LAYERED_PANE_PROPERTY, maximizable, MENU_BAR_PROPERTY, resizable, ROOT_PANE_PROPERTY, rootPane, rootPaneCheckingEnabled, title, TITLE_PROPERTY
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
CLOSE_ALL_WINDOWS_CMD, CLOSE_WINDOW_CMD, NEXT_WINDOW_CMD, OWN_TITLE_PROPERTY, PREVIOUS_WINDOW_CMD, TITLE_PROPERTY
ACTIVE_VIEW_PROPERTY, APPLICATION_PROPERTY, CONFIGURATION_NAME_PROPERTY, CONTAINER_TEMPLATE_PROPERTY, DOCUMENT_PROPERTY, DOCUMENT_TEMPLATE_PROPERTY, DOCUMENT_VIEWS_PROPERTY, VISIBILITY_PROPERTY
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
IlvInternalFrame()
Constructs a default
IlvInternalFrame . |
IlvInternalFrame(JDesktopPane desktopPane)
Constructs an internal frame for the specified desktop pane.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Invoked when an action occurs.
|
void |
activate()
Sets the internal frame active.
|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a listener that listens to the change of the properties of this
application.
|
boolean |
addViews(IlvDocumentView[] views)
Adds the specified views to the container.
|
boolean |
builtInViews()
Determines whether this internal frame already contains views when it is created.
|
boolean |
close()
Closes the internal frame.
|
IlvApplication |
getApplication()
Returns the application of the view.
|
IlvContainerTemplate |
getContainerTemplate()
Returns the container template that has created this internal frame.
|
String |
getContainerTitle()
Returns the title of the container.
|
IlvDocument |
getDocument()
Returns the document associated with this view container.
|
Object |
getProperty(String key)
Returns the property of the internal frame with the specified key.
|
IlvDocumentView[] |
getViews()
Returns the document views of this container.
|
boolean |
isContainerVisible()
Determines whether this internal frame is visible.
|
boolean |
isProcessingAction(String command)
Determines whether the action handler is able to perform the action
with the specified
command key in its
ActionListener.actionPerformed(java.awt.event.ActionEvent) method. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes the specified listener from the list of
PropertyChange
listeners managed by this application. |
void |
setApplication(IlvApplication application)
Sets the application of the view.
|
void |
setContainerTitle(String title)
Sets a new title to the internal frame.
|
void |
setContainerVisible(boolean visible)
Shows or hides this internal frame depending on the value of the
visible parameter. |
void |
setDocument(IlvDocument document)
Sets the document associated with the view.
|
Object |
setProperty(String key,
Object value)
Sets one of this internal frame's properties using the associated key.
|
void |
setSelected(boolean selected)
Selects and deselects the
JInternalFrame . |
boolean |
updateAction(Action action)
Invoked by the application for updating the state of the specified
action . |
addImpl, addInternalFrameListener, createRootPane, dispose, doDefaultCloseAction, fireInternalFrameEvent, getAccessibleContext, getContentPane, getDefaultCloseOperation, getDesktopIcon, getDesktopPane, getFocusCycleRootAncestor, getFocusOwner, getFrameIcon, getGlassPane, getInternalFrameListeners, getJMenuBar, getLastCursor, getLayer, getLayeredPane, getMenuBar, getMostRecentFocusOwner, getNormalBounds, getRootPane, getTitle, getUI, getUIClassID, getWarningString, hide, isClosable, isClosed, isFocusCycleRoot, isIcon, isIconifiable, isMaximizable, isMaximum, isResizable, isRootPaneCheckingEnabled, isSelected, moveToBack, moveToFront, pack, paintComponent, paramString, remove, removeInternalFrameListener, reshape, restoreSubcomponentFocus, setClosable, setClosed, setContentPane, setCursor, setDefaultCloseOperation, setDesktopIcon, setFocusCycleRoot, setFrameIcon, setGlassPane, setIcon, setIconifiable, setJMenuBar, setLayer, setLayer, setLayeredPane, setLayout, setMaximizable, setMaximum, setMenuBar, setNormalBounds, setResizable, setRootPane, setRootPaneCheckingEnabled, setTitle, setUI, show, toBack, toFront, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, validate, validateTree
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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public IlvInternalFrame(JDesktopPane desktopPane)
desktopPane
- The desktop pane in which to add the internal frame.public IlvInternalFrame()
IlvInternalFrame
.public boolean isContainerVisible()
isContainerVisible
in interface IlvViewContainer
true
if the internal frame is deiconified;
false
if the internal frame is iconified.IlvViewContainer.setContainerVisible(boolean)
public void setContainerVisible(boolean visible)
visible
parameter.setContainerVisible
in interface IlvViewContainer
visible
- If true
the internal frame is deiconified; if
false
the internal frame is iconified.isContainerVisible()
public boolean close()
close
in interface IlvMDIViewContainer
true
if the container could be closed;
false
otherwise.public void activate()
activate
in interface IlvViewContainer
public String getContainerTitle()
getContainerTitle
in interface IlvMDIViewContainer
setContainerTitle(java.lang.String)
,
JInternalFrame.TITLE_PROPERTY
public void setContainerTitle(String title)
TITLE_PROPERTY
is updated with the new specified title.setContainerTitle
in interface IlvMDIViewContainer
title
- The new title of the container.getContainerTitle()
,
JInternalFrame.TITLE_PROPERTY
public boolean builtInViews()
If it already contains views, it is asked for providing the built-in views
with the getViews()
method.
Otherwise, the document template associated with this container provides
the document views to the container with the method addViews(ilog.views.appframe.docview.IlvDocumentView[])
.
builtInViews
in interface IlvMDIViewContainer
false
for receiving views from the document template;
true
if it already contains document views.getViews()
,
addViews(ilog.views.appframe.docview.IlvDocumentView[])
public boolean addViews(IlvDocumentView[] views)
addViews
in interface IlvMDIViewContainer
views
- The views to add.true
if the views could be added to the
container; false
otherwise.public IlvDocumentView[] getViews()
getViews
in interface IlvViewContainer
public IlvContainerTemplate getContainerTemplate()
IlvDesktopPane
class is returned.public IlvDocument getDocument()
setDocument(ilog.views.appframe.docview.IlvDocument)
,
IlvViewContainer.DOCUMENT_PROPERTY
public void setDocument(IlvDocument document)
document
- The document of the view.getDocument()
,
IlvViewContainer.DOCUMENT_PROPERTY
public IlvApplication getApplication()
setApplication(ilog.views.appframe.IlvApplication)
,
IlvDocumentView.APPLICATION_PROPERTY
public void setApplication(IlvApplication application)
application
- The application of the view.getApplication()
,
IlvDocumentView.APPLICATION_PROPERTY
public boolean isProcessingAction(String command)
command
key in its
ActionListener.actionPerformed(java.awt.event.ActionEvent)
method.isProcessingAction
in interface ActionHandler
command
- The command key of the action.false
by default.public boolean updateAction(Action action)
action
. For example, the implementation of this method
can enable or disable the action.updateAction
in interface ActionHandler
action
- The action to update.false
by default.public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void setSelected(boolean selected) throws PropertyVetoException
JInternalFrame
.
Overrides the JInternalFrame
implementation to not notify the
application when the previously selected frame is deactivated. This avoids
performing useless initializations at the application level.setSelected
in class JInternalFrame
selected
- a boolean, where true means the frame is selected
(currently active) and false means it is notPropertyVetoException
- when the attempt to set the
property is vetoed by the receiver.public Object setProperty(String key, Object value)
PropertyChangeEvent
is sent to
property change listeners.setProperty
in interface IlvPropertyManager
key
- The non-null
property keyvalue
- An Object
value. If it equals
null
, the property with the specified key is removed.getProperty(java.lang.String)
public Object getProperty(String key)
getProperty
in interface IlvPropertyManager
key
- The non-null
property key.null
if the specified property was not found.setProperty(java.lang.String, java.lang.Object)
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
in interface IlvPropertyManager
addPropertyChangeListener
in class Container
listener
- The listener to add.removePropertyChangeListener(java.beans.PropertyChangeListener)
public void removePropertyChangeListener(PropertyChangeListener listener)
PropertyChange
listeners managed by this application.removePropertyChangeListener
in interface IlvPropertyManager
removePropertyChangeListener
in class Component
listener
- The listener to remove.addPropertyChangeListener(java.beans.PropertyChangeListener)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.