public class DefaultLayoutPanel extends LayoutPanel
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static java.io.File |
defaultPDFFolderPath |
protected LayoutDocument |
layoutDocument |
static java.lang.String |
PDF_AND_PS_FILECHOOSER |
static java.lang.String |
PERSISTENCE_DEFINITION_NAME |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
DefaultLayoutPanel()
Creates a new Layout object.
|
Modifier and Type | Method and Description |
---|---|
void |
backColorChanged(ColorEvent e) |
IFFramePanel |
createFFrameDialog(IFFrame fframe)
The dialogs are created here each time that are needed.
|
protected void |
createToc() |
void |
drawLayoutPrint(java.awt.Graphics2D g2)
Method to print the Layout without modify the Affinetransform.
|
Document |
getDocument() |
LayoutContext |
getLayoutContext()
Returns the LayoutContext.
|
LayoutControl |
getLayoutControl()
Returns LayoutControl.
|
WindowInfo |
getWindowInfo()
This method is used to get an initial ViewInfo object
for this Map.
|
WindowLayout |
getWindowLayout()
Método para obtener un windowData con las propiedades de la
ventana del documento como pueden ser tamaños, posiciones y
estados de sliders, divisores etc.
|
java.lang.Object |
getWindowModel()
Gets the window model, the identity, the object which will be used
to identify te window.
|
java.lang.Object |
getWindowProfile()
Gets the profile for this window
|
void |
hideToc() |
boolean |
isShowIconTag() |
void |
layoutToPDF()
It opens a dialog to select pdf file where to save the Layout in this
format.
|
void |
layoutToPDF(java.io.File file) |
void |
layoutToPDF(java.lang.String suggestedName)
Opens a dialog where to pick a PDF-file to save the current Layout
suggesting a name for the file given by the first argument
|
void |
layoutToPS()
It opens a dialog to select ps file where to save the Layout in this
format.
|
void |
layoutToPS(java.lang.String suggestedName)
Opens a dialog where to pick a PS-file to save the current Layout
suggesting a name for the file given by the first argument
|
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
void |
obtainRect(boolean isPrint)
It obtains the rectángulo that represents the sheet with the
characteristics
that contains attributes and differentiating if is to visualize in screen
or
for print.
|
static void |
registerPersistent() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setDocument(Document document) |
void |
setLayoutManager(LayoutManager layoutManager) |
void |
setShowIconTag(boolean modeDebug) |
protected void |
setToc() |
void |
setWindowLayout(WindowLayout layout)
Método para cargar los datos de la ventana de proyecto.
|
void |
showFConfig()
It shows the dialog of configuration of the Layout.
|
boolean |
showFProperties()
It shows the dialog of Layout´s properties.
|
void |
showPagePropertiesWindow(java.awt.print.PrinterJob job)
Open the dialog of Layout properties.
|
void |
showPrintDialog(java.awt.print.PrinterJob job)
It shows the dialog of printing of the Layout.
|
void |
showToc() |
void |
update(Observable observable,
java.lang.Object notification)
Called whenever a
Observable object is changed and this
Observer has registered on it to receive notifications. |
void |
windowActivated()
This method it is invoked when the window is activated.
|
void |
windowClosed()
This method it is invoked when the window is closed
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, 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, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, 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, reshape, 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, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, getFocusCycleRootAncestor, 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, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final java.lang.String PERSISTENCE_DEFINITION_NAME
public static final java.lang.String PDF_AND_PS_FILECHOOSER
public static java.io.File defaultPDFFolderPath
protected LayoutDocument layoutDocument
public void setDocument(Document document)
protected void createToc()
protected void setToc()
public void showPagePropertiesWindow(java.awt.print.PrinterJob job)
job
- PrinterJobpublic void obtainRect(boolean isPrint)
LayoutPanel
obtainRect
in class LayoutPanel
public void showFConfig()
LayoutPanel
showFConfig
in class LayoutPanel
public boolean showFProperties()
LayoutPanel
showFProperties
in class LayoutPanel
public void showPrintDialog(java.awt.print.PrinterJob job)
LayoutPanel
showPrintDialog
in class LayoutPanel
job
- PrinterJobpublic IFFramePanel createFFrameDialog(IFFrame fframe)
LayoutPanel
createFFrameDialog
in class LayoutPanel
fframe
- Rectangle that represents the place that occupied the element
added.public WindowInfo getWindowInfo()
com.iver.mdiApp.ui.MDIManager.IWindow#getWindowInfo()
public LayoutContext getLayoutContext()
LayoutPanel
getLayoutContext
in class LayoutPanel
public LayoutControl getLayoutControl()
LayoutPanel
getLayoutControl
in class LayoutPanel
public void windowActivated()
IWindowListener
com.iver.mdiApp.ui.MDIManager.IWindow#windowActivated()
public java.lang.Object getWindowModel()
SingletonWindow
com.iver.mdiApp.ui.MDIManager.SingletonWindow#getWindowModel()
public Document getDocument()
public void windowClosed()
IWindowListener
IWindowListener.windowClosed()
public void backColorChanged(ColorEvent e)
public void layoutToPDF(java.io.File file)
layoutToPDF
in class LayoutPanel
public void layoutToPDF(java.lang.String suggestedName)
LayoutPanel
layoutToPDF
in class LayoutPanel
public void layoutToPS(java.lang.String suggestedName)
LayoutPanel
layoutToPS
in class LayoutPanel
public void layoutToPDF()
LayoutPanel
layoutToPDF
in class LayoutPanel
public void layoutToPS()
LayoutPanel
layoutToPS
in class LayoutPanel
public boolean isShowIconTag()
isShowIconTag
in class LayoutPanel
public void setShowIconTag(boolean modeDebug)
setShowIconTag
in class LayoutPanel
modeDebug
- The bModeDebug to set.public void update(Observable observable, java.lang.Object notification)
Observer
Observable
object is changed and this
Observer
has registered on it to receive notifications.
Implementations of this method will be called for each simple notification or, if a complex notification is created, for each of the child notifications.
In the latter case, don't assume any ordering in the notification between
this Observer
and other Observer
s listening to the same
Observable
.
In a complex notification scenario, if you want to receive only the
complex notification and not each of the child notifications, just
implement the ComplexObserver
and prepare this method
implementation to handle receiving DefaultComplexNotification
instances
as well as direct notification objects.
observable
- the observable object.notification
- the notification data.public java.lang.Object getWindowProfile()
IWindow
Gets the profile for this window
public void saveToState(PersistentState state) throws PersistenceException
Persistent
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
PersistenceException
public static void registerPersistent()
public WindowLayout getWindowLayout()
IDocumentWindow
public void setWindowLayout(WindowLayout layout)
IDocumentWindow
public void setLayoutManager(LayoutManager layoutManager)
setLayoutManager
in class LayoutPanel
public void drawLayoutPrint(java.awt.Graphics2D g2)
drawLayoutPrint
in class LayoutPanel
g2
- Geaphics2Dpublic void hideToc()
hideToc
in class LayoutPanel
public void showToc()
showToc
in class LayoutPanel