Package org.w3c.jigadmin

Examples of org.w3c.jigadmin.RemoteResourceWrapper


  } catch (RemoteAccessException ex) {
      // Unable to connect for whatever reason... exit!
      ex.printStackTrace();
      System.exit(0);
  }
  rootResource = new RemoteResourceWrapper(rr, this);
  //build interface
    }
View Full Code Here


  serverList.addServerListListener(this);

  String servers[] = serverList.getModel().getServers();
  for (int i = 0 ; i < servers.length ; i++) {
      String server = servers[i];
      RemoteResourceWrapper rrw =
    serverList.getModel().getServer(server);
      //no way to get the component from the cardLayout :(
      ServerEditorInterface editor =
    ServerEditorFactory.getServerEditor(server, this, rrw);
      serverPanel.add(server, editor.getComponent());
View Full Code Here

    protected void initializeServerHelpers()
  throws RemoteAccessException
    {
  shelpers = new ServerHelperInterface[2]; //control + realms
  //control
  RemoteResourceWrapper rrw = server.getChildResource(CONTROL_NAME);
  shelpers[0] = ServerHelperFactory.getServerHelper(CONTROL_NAME, rrw);
  ControlServerHelper control = (ControlServerHelper) shelpers[0];
  control.setResOpEnabled(false);
  control.setSaveToolTipText("Save all servers configuration");
  control.setStopToolTipText("Stop all servers");
View Full Code Here

    /**
     * Load the children of this node.
     */
    protected synchronized void loadChildren() {
  String                names[] = null;
  RemoteResourceWrapper child   = null;
 
  children = new Vector();

  try {
      names = rrw.getResource().enumerateResourceIdentifiers();
View Full Code Here

    protected void select(String name) {
  selected = name;
  JPanel p1 = (JPanel)helpers.get(name);
  p1.removeAll();
  try {
      RemoteResourceWrapper rrw = root.getChildResource(name);
      AttributesHelper helper = new AttributesHelper();
      PropertyManager pm = PropertyManager.getPropertyManager();
      Properties props = pm.getEditorProperties(rrw);
      helper.initialize(rrw, props);
      p1.add(helper.getComponent());
View Full Code Here

     * @param cell The resource cell
     * @see org.w3c.jigadmin.editors.ResourceCell
     */
    protected boolean dropResource(ResourceCell cell)
    {
  RemoteResourceWrapper rrw = getSelectedResourceWrapper();
  if (cell.isFrame() || cell.isFilter()) {
      try {
    TreePath path = getSelectionPath();
    addFrame(cell.toString(), rrw, path);
    return true;
View Full Code Here

    }

    private void performAddResourceToSelectedContainer() {
  popupAddResourceDialog("Add Frame", getSelectedResourceWrapper());
  if (resClassname != null) {
      RemoteResourceWrapper rrw = getSelectedResourceWrapper();
      try {
    addFrame(resClassname, rrw, getSelectionPath());
      } catch (RemoteAccessException ex) {
    Message.showErrorMessage(this, ex);
      }
View Full Code Here

    /**
     * Add a frame to the selected container.
     */
    protected void addResourceToSelectedContainer() {
  RemoteResourceWrapper selected = getSelectedResourceWrapper();
  PropertyManager pm = PropertyManager.getPropertyManager();
  if (selected == null) {
      JOptionPane.showMessageDialog(this,
            "No resource selected",
            "Error",
View Full Code Here

                "Delete Frame(s)",
                JOptionPane.YES_NO_OPTION);
      if (result == JOptionPane.YES_OPTION) {
    DefaultTreeModel model = (DefaultTreeModel) getModel();
    for (int i = 0 ; i < path.length ; i++) {
        RemoteResourceWrapper rrw =
      getSelectedResourceWrapper(path[i]);
        if (rrw == null)
      continue;
        if (rrw != rootNode.getResourceWrapper()) {
      try {
View Full Code Here

  RemoteResource rr = server.getResource();
  String names[] = rr.enumerateResourceIdentifiers();
  Sorter.sortStringArray(names, true);
  shelpers = new ServerHelperInterface[names.length];
  for (int i = 0 ; i < names.length ; i++) {
      RemoteResourceWrapper rrw = server.getChildResource(names[i]);
      shelpers[i] = ServerHelperFactory.getServerHelper(names[i], rrw);
  }

  for (int i = 0 ; i < shelpers.length ; i++) {
      if (shelpers[i] instanceof ResourceActionSource) {
View Full Code Here

TOP

Related Classes of org.w3c.jigadmin.RemoteResourceWrapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.