tmpAction =
new AbstractAction(acr.getString(acr.I_ADD),
AGraphics.adminImages[AGraphics.ADD]) {
public void actionPerformed(ActionEvent e) {
DialogEvent de = new DialogEvent(this);
de.setDialogType(DialogEvent.ADD_DIALOG);
fireAdminEventDispatched(de);
}
};
addAction(ADD, tmpAction);
tmpAction =
new AbstractAction(acr.getString(acr.I_DELETE),
AGraphics.adminImages[AGraphics.DELETE]) {
public void actionPerformed(ActionEvent e) {
DialogEvent de = new DialogEvent(this);
de.setDialogType(DialogEvent.DELETE_DIALOG);
fireAdminEventDispatched(de);
}
};
addAction(DELETE, tmpAction);
tmpAction =
new AbstractAction(acr.getString(acr.I_PREFERENCES),
AGraphics.adminImages[AGraphics.PREFERENCES]) {
public void actionPerformed(ActionEvent e) {
System.err.println("Preferences");
}
};
addAction(PREFERENCES, tmpAction);
tmpAction =
new AbstractAction(acr.getString(acr.I_EXIT)) {
public void actionPerformed(ActionEvent e) {
ConsoleActionEvent cae = new
ConsoleActionEvent(this, ConsoleActionEvent.EXIT);
fireAdminEventDispatched(cae);
}
};
addAction(EXIT, tmpAction);
tmpAction =
new AbstractAction(acr.getString(acr.I_ABOUT)) {
public void actionPerformed(ActionEvent e) {
ConsoleActionEvent cae = new
ConsoleActionEvent(this, ConsoleActionEvent.ABOUT);
fireAdminEventDispatched(cae);
}
};
addAction(ABOUT, tmpAction);
tmpAction =
new AbstractAction(acr.getString(acr.I_PROPERTIES),
AGraphics.adminImages[AGraphics.PROPERTIES]) {
public void actionPerformed(ActionEvent e) {
DialogEvent de = new DialogEvent(this);
de.setDialogType(DialogEvent.PROPS_DIALOG);
fireAdminEventDispatched(de);
}
};
addAction(PROPERTIES, tmpAction);
tmpAction =
new AbstractAction(acr.getString(acr.I_SHUTDOWN_BROKER),
AGraphics.adminImages[AGraphics.SHUTDOWN]) {
public void actionPerformed(ActionEvent e) {
DialogEvent de = new DialogEvent(this);
de.setDialogType(DialogEvent.SHUTDOWN_DIALOG);
fireAdminEventDispatched(de);
}
};
addAction(SHUTDOWN, tmpAction);
tmpAction =
new AbstractAction(acr.getString(acr.I_RESTART_BROKER),
AGraphics.adminImages[AGraphics.RESTART]) {
public void actionPerformed(ActionEvent e) {
DialogEvent de = new DialogEvent(this);
de.setDialogType(DialogEvent.RESTART_DIALOG);
fireAdminEventDispatched(de);
}
};
addAction(RESTART, tmpAction);
tmpAction =
new AbstractAction(acr.getString(acr.I_PAUSE),
AGraphics.adminImages[AGraphics.PAUSE]) {
public void actionPerformed(ActionEvent e) {
DialogEvent de = new DialogEvent(this);
de.setDialogType(DialogEvent.PAUSE_DIALOG);
fireAdminEventDispatched(de);
}
};
addAction(PAUSE, tmpAction);
tmpAction =
new AbstractAction(acr.getString(acr.I_RESUME),
AGraphics.adminImages[AGraphics.RESUME]) {
public void actionPerformed(ActionEvent e) {
DialogEvent de = new DialogEvent(this);
de.setDialogType(DialogEvent.RESUME_DIALOG);
fireAdminEventDispatched(de);
}
};
addAction(RESUME, tmpAction);
tmpAction =
new AbstractAction(acr.getString(acr.I_CONNECT),
AGraphics.adminImages[AGraphics.CONNECT_TO_OBJSTORE]) {
public void actionPerformed(ActionEvent e) {
DialogEvent de = new DialogEvent(this);
de.setDialogType(DialogEvent.CONNECT_DIALOG);
fireAdminEventDispatched(de);
}
};
addAction(CONNECT, tmpAction);
tmpAction =
new AbstractAction(acr.getString(acr.I_DISCONNECT),
AGraphics.adminImages[AGraphics.DISCONNECT_FROM_OBJSTORE]) {
public void actionPerformed(ActionEvent e) {
DialogEvent de = new DialogEvent(this);
de.setDialogType(DialogEvent.DISCONNECT_DIALOG);
fireAdminEventDispatched(de);
}
};
addAction(DISCONNECT, tmpAction);
tmpAction =
new AbstractAction(acr.getString(acr.I_EXPAND_ALL),
AGraphics.adminImages[AGraphics.EXPAND_ALL]) {
public void actionPerformed(ActionEvent e) {
ConsoleActionEvent cae = new
ConsoleActionEvent(this, ConsoleActionEvent.EXPAND_ALL);
fireAdminEventDispatched(cae);
}
};
addAction(EXPAND_ALL, tmpAction);
tmpAction =
new AbstractAction(acr.getString(acr.I_COLLAPSE_ALL),
AGraphics.adminImages[AGraphics.COLLAPSE_ALL]) {
public void actionPerformed(ActionEvent e) {
ConsoleActionEvent cae = new
ConsoleActionEvent(this, ConsoleActionEvent.COLLAPSE_ALL);
fireAdminEventDispatched(cae);
}
};
addAction(COLLAPSE_ALL, tmpAction);
tmpAction =
new AbstractAction(acr.getString(acr.I_REFRESH),
AGraphics.adminImages[AGraphics.REFRESH]) {
public void actionPerformed(ActionEvent e) {
ConsoleActionEvent cae = new
ConsoleActionEvent(this, ConsoleActionEvent.REFRESH);
fireAdminEventDispatched(cae);
}
};
addAction(REFRESH, tmpAction);
tmpAction =
new AbstractAction(acr.getString(acr.I_PURGE_BROKER_DEST),
AGraphics.adminImages[AGraphics.PURGE]) {
public void actionPerformed(ActionEvent e) {
DialogEvent de = new DialogEvent(this);
de.setDialogType(DialogEvent.PURGE_DIALOG);
fireAdminEventDispatched(de);
}
};
addAction(PURGE, tmpAction);