com.ontimize.util.gis.client.gui.panels.actions
Class LoggerPanelAction

java.lang.Object
  extended by com.ontimize.util.gis.client.gui.panels.actions.LoggerPanelAction
All Implemented Interfaces:
com.ontimize.gui.i18n.Internationalization, IPopupMenuAction, java.awt.event.ActionListener, java.util.EventListener

public class LoggerPanelAction
extends java.lang.Object
implements IPopupMenuAction, com.ontimize.gui.i18n.Internationalization

Popup menu panel action. Opens the events log panel.

Code:

<com.ontimize.util.gis.client.gui.panels.components.PopupMenuItem
     attr="POPUP_MENU_ITEM_VIEW_LOG"
     img="com/ontimize/gui/images/formview.png"	
     actionClass="com.ontimize.util.gis.client.gui.panels.actions.LoggerPanelAction"/>


Field Summary
protected  GisLoggerPanelAppender appender
           
protected  java.lang.String APPENDER_NAME
           
protected  javax.swing.JButton buttonClearLog
           
protected  javax.swing.JButton buttonCopyToClipboardLog
           
protected  java.lang.String clearButtonText
           
protected  java.lang.String clipboardButtonText
           
protected  javax.swing.JComboBox comboBox
           
protected  java.lang.String comboBoxText
           
protected  javax.swing.JLabel comboLabel
           
protected  java.lang.String DIALOG_TITLE
           
protected  javax.swing.JPanel dialogPanel
           
protected  javax.swing.JFrame loggerDialog
           
protected  javax.swing.JTextPane loggerOutput
           
protected  int posX
           
protected  int posY
           
protected  IGisViewer viewer
           
protected  double xCoord
           
protected  double yCoord
           
 
Fields inherited from interface com.ontimize.gui.i18n.Internationalization
DEBUG_LANGUAGE
 
Constructor Summary
LoggerPanelAction()
           
LoggerPanelAction(IGisViewer viewer)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void addAppenderEvent(org.apache.log4j.Category arg0, org.apache.log4j.Appender arg1)
           
protected  void buildLoggerPanel()
           
protected  void buttonClearLog_actionPerformed(java.awt.event.ActionEvent ev)
           
protected  void buttonComboChoose_actionPerformed(java.awt.event.ActionEvent ev)
           
protected  void buttonCopyToClipboard_actionPerformed(java.awt.event.ActionEvent ev)
           
 java.util.Vector getTextsToTranslate()
           
 void removeAppenderEvent(org.apache.log4j.Category arg0, org.apache.log4j.Appender arg1)
           
 void setComponentLocale(java.util.Locale arg0)
           
 void setParameter(java.lang.String paramName, java.lang.Object paramValue)
          Set a parameter value for this action.
 void setParameters(java.util.Hashtable<java.lang.String,java.lang.Object> params)
          Set a group of parameters stored in a hashtable in [name, value] pairs.
 void setParentItem(PopupMenuItem popupItem)
          Set action parent item
 void setResourceBundle(java.util.ResourceBundle res)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

viewer

protected IGisViewer viewer

xCoord

protected double xCoord

yCoord

protected double yCoord

posX

protected int posX

posY

protected int posY

APPENDER_NAME

protected java.lang.String APPENDER_NAME

DIALOG_TITLE

protected java.lang.String DIALOG_TITLE

clearButtonText

protected java.lang.String clearButtonText

clipboardButtonText

protected java.lang.String clipboardButtonText

comboBoxText

protected java.lang.String comboBoxText

loggerOutput

protected javax.swing.JTextPane loggerOutput

loggerDialog

protected javax.swing.JFrame loggerDialog

dialogPanel

protected javax.swing.JPanel dialogPanel

buttonClearLog

protected javax.swing.JButton buttonClearLog

buttonCopyToClipboardLog

protected javax.swing.JButton buttonCopyToClipboardLog

comboBox

protected javax.swing.JComboBox comboBox

comboLabel

protected javax.swing.JLabel comboLabel

appender

protected GisLoggerPanelAppender appender
Constructor Detail

LoggerPanelAction

public LoggerPanelAction()

LoggerPanelAction

public LoggerPanelAction(IGisViewer viewer)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

buildLoggerPanel

protected void buildLoggerPanel()

addAppenderEvent

public void addAppenderEvent(org.apache.log4j.Category arg0,
                             org.apache.log4j.Appender arg1)

removeAppenderEvent

public void removeAppenderEvent(org.apache.log4j.Category arg0,
                                org.apache.log4j.Appender arg1)

buttonClearLog_actionPerformed

protected void buttonClearLog_actionPerformed(java.awt.event.ActionEvent ev)

buttonCopyToClipboard_actionPerformed

protected void buttonCopyToClipboard_actionPerformed(java.awt.event.ActionEvent ev)

buttonComboChoose_actionPerformed

protected void buttonComboChoose_actionPerformed(java.awt.event.ActionEvent ev)

getTextsToTranslate

public java.util.Vector getTextsToTranslate()
Specified by:
getTextsToTranslate in interface com.ontimize.gui.i18n.Internationalization

setComponentLocale

public void setComponentLocale(java.util.Locale arg0)
Specified by:
setComponentLocale in interface com.ontimize.gui.i18n.Internationalization

setResourceBundle

public void setResourceBundle(java.util.ResourceBundle res)
Specified by:
setResourceBundle in interface com.ontimize.gui.i18n.Internationalization
Specified by:
setResourceBundle in interface IPopupMenuAction

setParameter

public void setParameter(java.lang.String paramName,
                         java.lang.Object paramValue)
Description copied from interface: IPopupMenuAction
Set a parameter value for this action. The definition of this parameter in the xml code is using the FormAttribute element

Specified by:
setParameter in interface IPopupMenuAction
Parameters:
paramName - Parameter name
paramValue - Parameter value

setParameters

public void setParameters(java.util.Hashtable<java.lang.String,java.lang.Object> params)
Description copied from interface: IPopupMenuAction
Set a group of parameters stored in a hashtable in [name, value] pairs.

Specified by:
setParameters in interface IPopupMenuAction
Parameters:
params - Hashtable containing the popup menu action configuration parameters

setParentItem

public void setParentItem(PopupMenuItem popupItem)
Description copied from interface: IPopupMenuAction
Set action parent item

Specified by:
setParentItem in interface IPopupMenuAction
Parameters:
popupItem - Parent item