public class FootprintMatrixInfo extends JInternalFrame
JInternalFrame
to create a more detailed
version of a generic internal frame.
This specific internal frame is set to be an info page that displays the result of the
generateEventLogFootprint(boolean, EventLogEditor, FootprintFilter...)
method.
The JTextPane
of this class will contain the XHTML code produced by this method
and it will display it as the content of the frame.
This class also implements specific functions to remind if this page has already been exported or not and in which file.
JInternalFrame
,
JTextPane
,
Serialized FormJInternalFrame.AccessibleJInternalFrame, JInternalFrame.JDesktopIcon
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
private String |
absolutePath
This string contains the absolute path of the file associated with
this page.
|
private boolean |
isContentExported
Defines if the
textArea content has been exported or not. |
private static long |
serialVersionUID
Auto-Generated Serial Version UID for this class.
|
(package private) JTextPane |
textArea
Defines the area where to display HTML content.
|
private String |
xhtml
Defines the
String that will contain
the XHTML code displayed in the textArea . |
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
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
FootprintMatrixInfo(String title,
boolean resizable,
boolean closable,
boolean maximizable,
boolean iconifiable,
int internalFrameID)
Creates a
FootprintMatrixInfo with the specified title, resizability,
closability, maximizability, iconifiability and ID. |
Modifier and Type | Method and Description |
---|---|
private void |
frameSettings(int internalFrameID)
Sets the graphic details and components of the frame.
|
String |
getAbsolutePath()
This method returns the
absolutePath of the file associated with this document. |
JTextPane |
getTextArea()
This method returns the
JTextPane textArea . |
String |
getTextAreaContent()
This method returns the content of the
JTextPane textArea . |
private String |
getXHTML()
This method returns the value of the
xhtml variable. |
boolean |
isContentExported()
This method returns the
boolean isContentExported variable value. |
void |
setAbsolutePath(String path)
This method sets the value of the
absolutePath variable, that specifies
the absolute path of the file associated with this document. |
void |
setContentExported(boolean contentExported)
This method sets the value of the
isContentExported variable, that specifies
if the textArea content has been exported or not. |
void |
setTextAreaContent(String content)
This method sets the content of the
JTextPane textArea . |
private void |
setXHTML(String xhtmlCode)
This method sets the value of the
xhtml variable. |
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, setSelected, 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, 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, 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
private static final long serialVersionUID
private String xhtml
String
that will contain
the XHTML code displayed in the textArea
.
This variable keeps the original XHTML code that has
been set inside the textArea
: in fact when we set
the content of this area, this will be elaborated and then
showed. So, if we get it back from the container, it won't
be exactly the same one as the beginning. Using this variable,
we are sure to have the original XHTML code ready to use when
needed.
The method getTextAreaContent()
returns this value.
private boolean isContentExported
textArea
content has been exported or not.
This variable is set to true
when the user exports the content
for the first time. It is set to false
otherwise to show that
no exporting has been made to the content.
private String absolutePath
null
value instead if the content
has never been exported yet.public FootprintMatrixInfo(String title, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable, int internalFrameID)
FootprintMatrixInfo
with the specified title, resizability,
closability, maximizability, iconifiability and ID.
Then defines all its settings by calling the frameSettings(int)
method.
title
- the String to display in the title barresizable
- if true, the internal frame can be resizedclosable
- if true, the internal frame can be closedmaximizable
- if true, the internal frame can be maximizediconifiable
- if true, the internal frame can be iconifiedinternalFrameID
- the identifier of the FootprintMatrixInfo
frameprivate void frameSettings(int internalFrameID)
internalFrameID
- the identifier of the FootprintMatrixInfo
framepublic JTextPane getTextArea()
JTextPane
textArea
.JTextPane
text area.public String getTextAreaContent()
JTextPane
textArea
.
More precisely, it returns the value of the xhtml
variable which keeps
the original XHTML code used to set the JTextPane
content.
On this way, the method returns the (right) original XHTML code and not the
(wrong) elaborated one by the JTextPane
.
String
representing the XHTML content of the JTextPane
.public void setTextAreaContent(String content)
JTextPane
textArea
.
This method also sets the value of the xhtml
variable using the passed
parameter, to save the original XHTML code used to set the JTextPane
content.
content
- the content to set inside the JTextPane
private String getXHTML()
xhtml
variable.xhtml
variable.private void setXHTML(String xhtmlCode)
xhtml
variable.xhtmlCode
- the original xhtml code used to set the textArea
contentpublic boolean isContentExported()
boolean
isContentExported
variable value.boolean
value of the isContentExported
variable.public void setContentExported(boolean contentExported)
isContentExported
variable, that specifies
if the textArea
content has been exported or not.contentExported
- true
if the content has been exported, false
otherwisepublic String getAbsolutePath()
absolutePath
of the file associated with this document.null
if there is not an associated file yet.public void setAbsolutePath(String path)
absolutePath
variable, that specifies
the absolute path of the file associated with this document.path
- the String
representing the absolute path of the file associated with this editor