EchoPoint
1.0

echopoint
Class PrintRequest

java.lang.Object
  extended bynextapp.echo.Component
      extended byechopoint.PrintRequest
All Implemented Interfaces:
java.io.Serializable

public class PrintRequest
extends nextapp.echo.Component

The PrintRequest component can be used to get the client browser to print the current window or frame.

The presence of this no visual component will cause the browser to show the platform print dialog and allow them to print the current contents of the page.

The component will only perform printing if is active. Once it has been rendered once, it automatically sets itself to be non active. The allows it to be present as a component, without unintentional print requests.

Author:
JP Fielding
See Also:
Serialized Form

Field Summary
 
Fields inherited from class nextapp.echo.Component
BACKGROUND_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FONT_CHANGED_PROPERTY, FOREGROUND_CHANGED_PROPERTY, IDENTIFIER_CHANGED_PROPERTY, listenerList, LOCALE_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, STYLE_BACKGROUND, STYLE_FONT, STYLE_FOREGROUND, UPDATE_PROPERTY, VISIBLE_CHANGED_PROPERTY
 
Constructor Summary
PrintRequest()
          Contructs a PrintRequest that is active and only prints the current frame.
PrintRequest(boolean active)
          Contructs a PrintRequest only prints the current frame will be active if active is set to true.
 
Method Summary
 boolean isActive()
           
 boolean isFrameOnly()
           
 void setActive(boolean active)
           
 void setFrameOnly(boolean frameOnly)
           
 
Methods inherited from class nextapp.echo.Component
add, add, addHierarchyListener, addPropertyChangeListener, applyStyle, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getComponent, getComponentCount, getComponents, getEchoInstance, getFont, getForeground, getIdentifier, getLocale, getParent, indexOf, init, isAncestorOf, isEnabled, isRegistered, isShowing, isVisible, remove, remove, removeAll, removeHierarchyListener, removePropertyChangeListener, setBackground, setEnabled, setFont, setForeground, setIdentifier, setLocale, setVisible, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintRequest

public PrintRequest()
Contructs a PrintRequest that is active and only prints the current frame.


PrintRequest

public PrintRequest(boolean active)
Contructs a PrintRequest only prints the current frame will be active if active is set to true.

Method Detail

isActive

public boolean isActive()
Returns:
true if the PrintRequest is active

setActive

public void setActive(boolean active)
Parameters:
active - - true if the Printrequest is to be active

isFrameOnly

public boolean isFrameOnly()
Returns:
true if the frame only will be printed

setFrameOnly

public void setFrameOnly(boolean frameOnly)
Parameters:
frameOnly - set to true if the only the frame is to be printed

EchoPoint
1.0