Example of user panel and monitor

Ca 300 LOC!

Appl

Interface to be implemented by application

public interface xiUserPanel
public abstract void init(xiDesktop desktop, ActionListener actionlistener);
Called by xgui after instantiation. The desktop can be used to add frames (see below).
public abstract String getHeader();
Must return a header/name text after instantiation.
public abstract String getToolTip();
Must return a tooltip text after instantiation.
public abstract ImageIcon getIcon();
Must return an icon after instantiation.
public abstract xiUserCommand getUserCommand();
Must return an object implementing xiUserCommand, or null. See below.
public abstract void setDimServices(xiDimBrowser browser);
Called by xgui whenever the DIM services had been changed.
The browser provides the command and parameter list (see below). One can select and store references to commands or parameters. A xiUserInfoHandler can be registered for each selected parameter. Then the infoHandler method is called for each parameter update.
public abstract void releaseDimServices();
All local references to commands or parameters must be cleared!

public interface xiUserCommand
public abstract boolean getArgumentStyleXml(String scope, String command);
Return true if command shall be composed as XML string, false if MBS style string. scope is specified in the XML command descriptor, command is the full command name.

public interface xiUserInfoHandler
public abstract void infoHandler(xiDimParameter p);

Interface provided by xgui

public interface xiDesktop
public abstract void addDesktop(JInternalFrame frame, String name);

public interface xiDimBrowser
public xiDimParameter[] getParameters();
public xiDimCommand[] getCommands();
public void setInfoHandler(xiDimParameter parameter, xiUserInfoHandler infohandler);
public void sleep(int s);

public interface xiDimCommand
public abstract void exec(String command);
public abstract xiParser getParserInfo();

public interface xiDimParameter
public abstract xRecordMeter getMeter();
Get reference to data record of rate parameter.
public abstract xRecordState getState();
Get reference to data record of state parameter.
public abstract xRecordInfo getInfo();
Get reference to data record of info parameter.
public abstract xiParser getParserInfo();

public interface xiParser
public abstract String getDns();
public abstract String getNode();
public abstract String getNodeName();
public abstract String getNodeID();
public abstract String getApplicationFull();
public abstract String getApplication();
public abstract String getApplicationName();
public abstract String getApplicationID();
public abstract String getName();
public abstract String getNameSpace();
public abstract String[] getItems();
public abstract String getFull();
public abstract String getFull(boolean build);
public abstract String getCommand();
public abstract String getCommand(boolean build);
public abstract int getType();
public abstract int getState();
public abstract int getVisibility();
public abstract int getMode();
public abstract int getQuality();
public abstract int getNofTypes();
public abstract int[] getTypeSizes();
public abstract String[] getTypeList();
public abstract String getFormat();
public abstract boolean isNotSpecified();
public abstract boolean isSuccess();
public abstract boolean isInformation();
public abstract boolean isWarning();
public abstract boolean isError();
public abstract boolean isFatal();
public abstract boolean isAtomic();
public abstract boolean isGeneric();
public abstract boolean isState();
public abstract boolean isInfo();
public abstract boolean isRate();
public abstract boolean isHistogram();
public abstract boolean isCommandDescriptor();
public abstract boolean isHidden();
public abstract boolean isVisible();
public abstract boolean isMonitor();
public abstract boolean isChangable();
public abstract boolean isImportant();
public abstract boolean isLogging();
public abstract boolean isArray();
public abstract boolean isFloat();
public abstract boolean isDouble();
public abstract boolean isInt();
public abstract boolean isLong();
public abstract boolean isChar();
public abstract boolean isStruct();

-- HansEssel - 16 Jun 2008
Topic revision: r6 - 2008-06-19, HansEssel - This page was cached on 2024-11-20 - 04:40.

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback | Legal notice | Privacy Policy (german)