Elexis API documentation
Version 2.1.6 as of December 11 2011

com.sun.star.comp.beans
Class OOoBean

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by com.sun.star.comp.beans.OOoBean
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Externalizable, java.io.Serializable

public class OOoBean
extends java.awt.Container
implements java.io.Externalizable

This is the basic JavaBean for all OOo application modules.

Since:
OOo 2.0.0
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.BaselineResizeBehavior
 
Field Summary
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
OOoBean()
          Generic constructor of the OOoBean.
OOoBean(OfficeConnection iConnection)
          Deprecated. Clients could use the getOOoConnection to obtain an OfficeConnection and use it as argument in a constructor for another OOoBean instance. Calling the dispose method of the OfficeConnection or the OOoBean's stopOOoConnection method would make all instances of OOoBean stop working.
 
Method Summary
 void aquireSystemWindow()
          This method causes the office window to be displayed.
 void clear()
          Resets the OOoBean to an empty status.
 void clearDocument(boolean bClearStateToo)
          Deprecated. There is currently no way to dismiss changes, except for loading of the unchanged initial document. Furthermore it is unclear how derived classes handle this and what exactly their state is (e.g. what members make up their state). Calling this method on a derived class requires knowledge about their implementation. Therefore a deriving class should declare their own clearDocument if needed. Clients should call the clearDocument of the deriving class or clear() which discards the currently displayed document.
 Controller getController()
          returns the of the bean.
 OfficeDocument getDocument()
          returns the of the bean.
 Frame getFrame()
          returns the Frame of the bean.
 com.sun.star.lang.XMultiServiceFactory getMultiServiceFactory()
          Returns the service factory used by this OOoBean instance.
 OfficeConnection getOOoConnection()
          Returns the a connection to an OOo instance.
 com.sun.star.frame.XDesktop getOOoDesktop()
          Returns the XDesktop interface of the OOo instance used by this OOoBean.
 boolean isMenuBarVisible()
          Deprecated. Clients should use the service com.sun.star.frame.LayoutManager, which can be obtained from a frame, to control toolbars. See also setAllBarsVisible(boolean).
 boolean isOOoConnected()
          Deprecated. This method is not useful in a multithreaded environment. Then all threads accessing the instance would have to be synchronized in order to make is method work. It is better to call OOoBean's methods and be prepared to catch a NoConnectionException.
 boolean isStandardBarVisible()
          Deprecated. Clients should use the service com.sun.star.frame.LayoutManager, which can be obtained from a frame, to control toolbars. See also setAllBarsVisible(boolean).
 boolean isStatusBarVisible()
          Deprecated. Clients should use the service com.sun.star.frame.LayoutManager, which can be obtained from a frame, to control toolbars. See also setAllBarsVisible(boolean).
 boolean isToolBarVisible()
          Deprecated. Clients should use the service com.sun.star.frame.LayoutManager, which can be obtained from a frame, to control toolbars. See also setAllBarsVisible(boolean).
 void loadFromByteArray(byte[] aInBuffer, com.sun.star.beans.PropertyValue[] aArguments)
          Loads a document from a byte array.
 void loadFromStream(java.io.InputStream iInStream, com.sun.star.beans.PropertyValue[] aArguments)
          Loads a document from a Java stream.
 void loadFromURL(java.lang.String aURL, com.sun.star.beans.PropertyValue[] aArguments)
          Loads the bean from the given URL.
 void paint(java.awt.Graphics aGraphics)
          Deprecated.  
 void readExternal(java.io.ObjectInput aObjIn)
          Deprecated.  
 void releaseSystemWindow()
          Deprecated. When Component.removeNotify of the parent window of the actual office window is called, then the actions are performed for which this method needed to be called previously.
 void setAllBarsVisible(boolean bVisible)
          Deprecated. Clients should use the service com.sun.star.frame.LayoutManager, which can be obtained from a frame, to control toolbars. For example:
 com.sun.star.beans.XPropertySet xPropSet =
        (com.sun.star.beans.XPropertySet) UnoRuntime.queryInterface(
                com.sun.star.beans.XPropertySet.class, aFrame);
 com.sun.star.frame.XLayoutManager xLayoutManager =
        (com.sun.star.frame.XLayoutManager) UnoRuntime.queryInterface(
                com.sun.star.frame.XLayoutManager.class, xPropSet.getPropertyValue("LayoutManager"));
 xLayoutManager.showElement("private:resource/menubar/menubar");
 
 void setMenuBarVisible(boolean bVisible)
          Deprecated. Clients should use the service com.sun.star.frame.LayoutManager, which can be obtained from a frame, to control toolbars. See also setAllBarsVisible(boolean).
 void setOOoCallTimeOut(int nMilliSecs)
          Sets the timeout for normal OOO methods calls in milli seconds.
 void setOOoCheckCycle(int nMilliSecs)
          Sets the period length in milli seconds to check the OOo connection.
 void setOOoStartTimeOut(int nMilliSecs)
          Sets the timeout for methods which launch OOo in milli seconds.
 void setStandardBarVisible(boolean bVisible)
          Deprecated. Clients should use the service com.sun.star.frame.LayoutManager, which can be obtained from a frame, to control toolbars. See also setAllBarsVisible(boolean).
 void setStatusBarVisible(boolean bVisible)
          Deprecated. Clients should use the service com.sun.star.frame.LayoutManager, which can be obtained from a frame, to control toolbars. See also setAllBarsVisible(boolean).
 void setToolBarVisible(boolean bVisible)
          Deprecated. Clients should use the service com.sun.star.frame.LayoutManager, which can be obtained from a frame, to control toolbars. See also setAllBarsVisible(boolean).
 void startOOoConnection(java.lang.String aConnectionURL)
          Starts a connection to an OOo instance which is lauched if not running.
 void stopOOoConnection()
          Disconnects from the connected OOo instance.
 byte[] storeToByteArray(byte[] aOutBuffer, com.sun.star.beans.PropertyValue[] aArguments)
          Stores a document to a byte array.
 java.io.OutputStream storeToStream(java.io.OutputStream aOutStream, com.sun.star.beans.PropertyValue[] aArguments)
          Stores a document to a stream.
 void storeToURL(java.lang.String aURL, com.sun.star.beans.PropertyValue[] aArguments)
          Stores a document to the given URL.
 void writeExternal(java.io.ObjectOutput aObjOut)
          Deprecated.  
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OOoBean

public OOoBean()
Generic constructor of the OOoBean. Neither a connection is established nor any document loaded.


OOoBean

public OOoBean(OfficeConnection iConnection)
        throws NoConnectionException
Deprecated. Clients could use the getOOoConnection to obtain an OfficeConnection and use it as argument in a constructor for another OOoBean instance. Calling the dispose method of the OfficeConnection or the OOoBean's stopOOoConnection method would make all instances of OOoBean stop working.

Constructor for an OOoBean which uses a specific office connection. The connection must be established but no document is loaded.

Throws:
NoConnectionException - if the connection is not established.
Method Detail

writeExternal

public void writeExternal(java.io.ObjectOutput aObjOut)
Deprecated. 

Specified by:
writeExternal in interface java.io.Externalizable

readExternal

public void readExternal(java.io.ObjectInput aObjIn)
Deprecated. 

Specified by:
readExternal in interface java.io.Externalizable

setOOoStartTimeOut

public void setOOoStartTimeOut(int nMilliSecs)
Sets the timeout for methods which launch OOo in milli seconds. This method does not need a connection to an OOo instance.


setOOoCallTimeOut

public void setOOoCallTimeOut(int nMilliSecs)
Sets the timeout for normal OOO methods calls in milli seconds. This method does not need a connection to an OOo instance.


setOOoCheckCycle

public void setOOoCheckCycle(int nMilliSecs)
Sets the period length in milli seconds to check the OOo connection. This method does not need a connection to an OOo instance.


startOOoConnection

public void startOOoConnection(java.lang.String aConnectionURL)
                        throws java.net.MalformedURLException,
                               HasConnectionException,
                               NoConnectionException
Starts a connection to an OOo instance which is lauched if not running.

Throws:
HasConnectionException - if a connection was already established.
NoConnectionException - if the specified connection cannot be established
java.net.MalformedURLException

isOOoConnected

public boolean isOOoConnected()
Deprecated. This method is not useful in a multithreaded environment. Then all threads accessing the instance would have to be synchronized in order to make is method work. It is better to call OOoBean's methods and be prepared to catch a NoConnectionException.

Returns true if this OOoBean is connected to an OOo instance, false otherwise.


stopOOoConnection

public void stopOOoConnection()
Disconnects from the connected OOo instance. If there was no connection yet or anymore, this method can be called anyway. When the OOoBean is displayed in an applet by a web browser, then this method must be called from within java.applet.Applet.stop.


getOOoConnection

public OfficeConnection getOOoConnection()
                                  throws NoConnectionException
Returns the a connection to an OOo instance. If no connection exists, a default connection will be created. An OfficeConnection can be used to register listeners of type com.sun.star.lang.EventListener, which are notified when the connection to the office dies. One should not call the dispose method, because this may result in receiving com.sun.star.lang.DisposedExceptions when calling stopOOoConnection or other API methods. If other instances share the same connection then they will stop function properly, because they loose their connection as well. The recommended way to end the connection is calling stopOOoConnection.

Throws:
NoConnectionException - if no connection can be established

getMultiServiceFactory

public com.sun.star.lang.XMultiServiceFactory getMultiServiceFactory()
                                                              throws NoConnectionException
Returns the service factory used by this OOoBean instance.

Throws:
NoConnectionException - if no connection is established and no default connection can be established.

getOOoDesktop

public com.sun.star.frame.XDesktop getOOoDesktop()
                                          throws NoConnectionException
Returns the XDesktop interface of the OOo instance used by this OOoBean.

Throws:
NoConnectionException - if no connection is established and no default connection can be established.

clearDocument

public void clearDocument(boolean bClearStateToo)
                   throws com.sun.star.util.CloseVetoException,
                          NoConnectionException
Deprecated. There is currently no way to dismiss changes, except for loading of the unchanged initial document. Furthermore it is unclear how derived classes handle this and what exactly their state is (e.g. what members make up their state). Calling this method on a derived class requires knowledge about their implementation. Therefore a deriving class should declare their own clearDocument if needed. Clients should call the clearDocument of the deriving class or clear() which discards the currently displayed document.

Resets this bean to an empty document. If a document is loaded and the content modified, the changes are dismissed. Otherwise nothing happens. This method is intended to be overridden in derived classes. This implementation simply calls clear.

Parameters:
bClearStateToo - Not only the document content but also the state of the bean, like visibility of child components is cleared.
Throws:
com.sun.star.util.CloseVetoException
NoConnectionException

clear

public void clear()
Resets the OOoBean to an empty status. Any loaded document is unloaded, no matter whether it is modified or not. After calling this method, the OOoBean has no office document and no frame anymore. The connection will stay, though. This method works with or without an established connection.


aquireSystemWindow

public void aquireSystemWindow()
                        throws SystemWindowException,
                               NoConnectionException
This method causes the office window to be displayed. If no document is loaded and the instance is added to a Java container that is showing, then this method needs not to be called. If later one of the methods loadFromURL, loadFromStream1, or loadFromByteArray is called, then the document is automatically displayed. Should one of the load methods have been called before the Java container was showing, then this method needs to be called after the container window was made visible (java.lang.Component.setVisible(true)).

Another scenario is that a OOoBean contains a document and is removed from a Java container and later added again. Then aquireSystemWindow needs to be called after the container window is displayed.

Throws:
SystemWindowException - if no system window can be aquired.
NoConnectionException - if the connection is not established.

releaseSystemWindow

public void releaseSystemWindow()
                         throws SystemWindowException,
                                NoConnectionException
Deprecated. When Component.removeNotify of the parent window of the actual office window is called, then the actions are performed for which this method needed to be called previously.

This method must be called when the OOoBean before the sytem window may be released by it's parent AWT/Swing component. This is the case when java.awt.Component.isDisplayable() returns true. This is definitely the case when the OOoBean is removed from it's parent container.

Throws:
SystemWindowException - if system window is not aquired.
NoConnectionException - if the connection is not established.

loadFromURL

public void loadFromURL(java.lang.String aURL,
                        com.sun.star.beans.PropertyValue[] aArguments)
                 throws NoConnectionException,
                        java.io.IOException,
                        com.sun.star.lang.IllegalArgumentException,
                        com.sun.star.util.CloseVetoException
Loads the bean from the given URL. If a document is already loaded and the content modified, the changes are dismissed. If no connection exists, a default connection is established.

Throws:
java.lang.IllegalArgumentException - if either of the arguments is out of the specified range.
java.io.IOException - if an IO error occurs reading the ressource specified by the URL.
com.sun.star.lang.NoConnectionException - if no connection can be established.
com.sun.star.util.CloseVetoException - if the currently displayed document cannot be closed because it is still be used, for example it is printed.
NoConnectionException
com.sun.star.lang.IllegalArgumentException

loadFromStream

public void loadFromStream(java.io.InputStream iInStream,
                           com.sun.star.beans.PropertyValue[] aArguments)
                    throws NoConnectionException,
                           java.io.IOException,
                           com.sun.star.lang.IllegalArgumentException,
                           com.sun.star.util.CloseVetoException
Loads a document from a Java stream. See loadFromURL() for further information.

Throws:
NoConnectionException
java.io.IOException
com.sun.star.lang.IllegalArgumentException
com.sun.star.util.CloseVetoException

loadFromByteArray

public void loadFromByteArray(byte[] aInBuffer,
                              com.sun.star.beans.PropertyValue[] aArguments)
                       throws NoConnectionException,
                              java.io.IOException,
                              com.sun.star.lang.IllegalArgumentException,
                              com.sun.star.util.CloseVetoException
Loads a document from a byte array. See loadFromURL() for further information.

Throws:
NoConnectionException
java.io.IOException
com.sun.star.lang.IllegalArgumentException
com.sun.star.util.CloseVetoException

storeToURL

public void storeToURL(java.lang.String aURL,
                       com.sun.star.beans.PropertyValue[] aArguments)
                throws NoConnectionException,
                       java.io.IOException,
                       com.sun.star.lang.IllegalArgumentException,
                       NoDocumentException
Stores a document to the given URL.

Due due a bug (50651) calling this method may cause the office to crash, when at the same time the office writes a backup of the document. This bug also affects storeToByteArray and storeToStream. The workaround is to start the office with the option -norestore, which disables the automatic backup and recovery mechanism. OOoBean offers currently no supported way of providing startup options for OOo. But it is possible to set a Java property when starting Java, which is examined by OOoBean:

 java -Dcom.sun.star.officebean.Options=-norestore  ...
 
It is planned to offer a way of specifying startup options in a future version. The property can be used until then. When using this property only one option can be provided.

Throws:
java.lang.IllegalArgumentException - if either of the arguments is out of the specified range.
java.io.IOException - if an IO error occurs reading the ressource specified by the URL.
com.sun.star.lang.NoConnectionException - if no connection is established.
NoDocumentException - if no document is loaded
NoConnectionException
com.sun.star.lang.IllegalArgumentException

storeToStream

public java.io.OutputStream storeToStream(java.io.OutputStream aOutStream,
                                          com.sun.star.beans.PropertyValue[] aArguments)
                                   throws NoConnectionException,
                                          NoDocumentException,
                                          java.io.IOException,
                                          com.sun.star.lang.IllegalArgumentException
Stores a document to a stream. See storeToURL for further information.

Throws:
NoConnectionException
NoDocumentException
java.io.IOException
com.sun.star.lang.IllegalArgumentException
See Also:
storeToURL

storeToByteArray

public byte[] storeToByteArray(byte[] aOutBuffer,
                               com.sun.star.beans.PropertyValue[] aArguments)
                        throws NoConnectionException,
                               NoDocumentException,
                               java.io.IOException,
                               com.sun.star.lang.IllegalArgumentException
Stores a document to a byte array. See storeToURL for further information.

Throws:
NoConnectionException
NoDocumentException
java.io.IOException
com.sun.star.lang.IllegalArgumentException
See Also:
storeToURL

getFrame

public Frame getFrame()
               throws NoConnectionException
returns the Frame of the bean.

Throws:
NoConnectionException - if the connection is not established.
NotDocumentException - if no document is loaded an thus no frame is available.

getController

public Controller getController()
                         throws NoConnectionException
returns the of the bean.

Throws:
NoConnectionException - if the connection is not established.

getDocument

public OfficeDocument getDocument()
                           throws NoConnectionException
returns the of the bean.

Throws:
NoConnectionException - if the connection is not established.

setAllBarsVisible

public void setAllBarsVisible(boolean bVisible)
Deprecated. Clients should use the service com.sun.star.frame.LayoutManager, which can be obtained from a frame, to control toolbars. For example:
 com.sun.star.beans.XPropertySet xPropSet =
        (com.sun.star.beans.XPropertySet) UnoRuntime.queryInterface(
                com.sun.star.beans.XPropertySet.class, aFrame);
 com.sun.star.frame.XLayoutManager xLayoutManager =
        (com.sun.star.frame.XLayoutManager) UnoRuntime.queryInterface(
                com.sun.star.frame.XLayoutManager.class, xPropSet.getPropertyValue("LayoutManager"));
 xLayoutManager.showElement("private:resource/menubar/menubar");
 

Sets visibility of all tool bars known by this OOoBean version. Initially all tool bars are visible. By hiding all tool bars utilizing this method, it is possible to turn just a subset of tool bars on afterwards, no matter whether all available tool bars are known or not.

If an older OOoBean instance is used with a newer OOo instance, some tool bars might not be affected by this method.

If no connection is established or no document is loaded, the setting is memorized until a document is loaded. Same is valid when the connection dies within this function call.


setMenuBarVisible

public void setMenuBarVisible(boolean bVisible)
Deprecated. Clients should use the service com.sun.star.frame.LayoutManager, which can be obtained from a frame, to control toolbars. See also setAllBarsVisible(boolean).

Sets the visibility of the menu bar. Initially the menu bar is visible.

If not connected or no document loaded, the value is stored and automatically applied to the document after it is loaded. Same is valid when the connection dies within this function call.

Parameters:
bVisible - If false, the menu bar is disabled, If true, the menu bar is visible.

isMenuBarVisible

public boolean isMenuBarVisible()
Deprecated. Clients should use the service com.sun.star.frame.LayoutManager, which can be obtained from a frame, to control toolbars. See also setAllBarsVisible(boolean).

Returns the visibility of the menu bar. This method works independently from a connetion or loaded document. If no connection is established or no document is loaded, this method just returns a memorized status.

Returns:
True if the menu bar is visible, false if the menu bar is hidden.

setStandardBarVisible

public void setStandardBarVisible(boolean bVisible)
Deprecated. Clients should use the service com.sun.star.frame.LayoutManager, which can be obtained from a frame, to control toolbars. See also setAllBarsVisible(boolean).

Sets the main function bar visibilty. Initially the standard bar is visible. If not connected or no document loaded, the value is stored and automatically applied to the document after it is loaded. Same is valid when the connection dies within this function call.

Parameters:
bVisible - If false, the main function bar is disabled, If true, the main function bar is visible.

isStandardBarVisible

public boolean isStandardBarVisible()
Deprecated. Clients should use the service com.sun.star.frame.LayoutManager, which can be obtained from a frame, to control toolbars. See also setAllBarsVisible(boolean).

Returns the visibility of the main function bar. This method works independently from a connetion or loaded document. If no connection is established or no document is loaded, this method just returns a memorized status.

Returns:
True if the main function bar is visible, false if the main function bar is hidden.

setToolBarVisible

public void setToolBarVisible(boolean bVisible)
Deprecated. Clients should use the service com.sun.star.frame.LayoutManager, which can be obtained from a frame, to control toolbars. See also setAllBarsVisible(boolean).

Sets the tool function bar visibilty. Initially the tool bar is visible. If not connected or no document loaded, the value is stored and automatically applied to the document after it is loaded. Same is valid when the connection dies within this function call.

Parameters:
bVisible - If false, the tool function bar is disabled, If true, the tool function bar is visible.

isToolBarVisible

public boolean isToolBarVisible()
Deprecated. Clients should use the service com.sun.star.frame.LayoutManager, which can be obtained from a frame, to control toolbars. See also setAllBarsVisible(boolean).

Returns the visibility of the tool function bar. This method works independently from a connetion or loaded document. If no connection is established or no document is loaded, this method just returns a memorized status.

Returns:
True if the tool function bar is visible, false if the tool function bar is hidden.

setStatusBarVisible

public void setStatusBarVisible(boolean bVisible)
Deprecated. Clients should use the service com.sun.star.frame.LayoutManager, which can be obtained from a frame, to control toolbars. See also setAllBarsVisible(boolean).

Sets the status function bar visibilty. Initially the status bar is visible. If not connected or no document loaded, the value is stored and automatically applied to the document after it is loaded. Same is valid when the connection dies within this function call.

Parameters:
bVisible - If false, the status function bar is disabled, If true, the status function bar is visible.

isStatusBarVisible

public boolean isStatusBarVisible()
Deprecated. Clients should use the service com.sun.star.frame.LayoutManager, which can be obtained from a frame, to control toolbars. See also setAllBarsVisible(boolean).

Returns the visibility of the status function bar. This method works independently from a connetion or loaded document. If no connection is established or no document is loaded, this method just returns a memorized status.

Returns:
True if the status function bar is visible, false if the status function bar is hidden.

paint

public void paint(java.awt.Graphics aGraphics)
Deprecated. 

Overrides:
paint in class java.awt.Container

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis