Package org.w3c.jigsaw.admin

Examples of org.w3c.jigsaw.admin.RemoteResource


     * @return an AttributeEditor, or <strong>null</strong> if none found
     */

    public static synchronized
    AttributeEditor getEditor(RemoteResourceWrapper rrw, Attribute attribute) {
  RemoteResource resource = rrw.getResource();

  PropertyManager pm = PropertyManager.getPropertyManager();
  Properties props = pm.getAttributeProperties(rrw, attribute);
  String className = (String) props.get("class");
  if ( className == null ) {
View Full Code Here


  } else {
      widget.initialize(0.0,100.0,5.0);
  }

  RemoteResource r = w.getResource();
  if(o == null) {
      Double v = null;
      // FIXME
      v = (Double) r.getValue(a.getName());
    
      if(v == null)
    if(a.getDefault() != null)
        v = (Double)a.getDefault();
      if ( v != null ) {
View Full Code Here

    public void initialize(RemoteResourceWrapper w, Attribute a,  Object o,
         Properties p)
  throws RemoteAccessException
    {
  RemoteResource r = w.getResource();
  if(o == null) {
      String v = (String) r.getValue(a.getName());
      if(v == null)
    if(a.getDefault() != null)
        v = a.getDefault().toString();
      if ( v != null ) {
    origs = v;
View Full Code Here

    public void initialize(RemoteResourceWrapper w, Attribute a,  Object o,
         Properties p)
  throws RemoteAccessException
    {
  RemoteResource r = w.getResource();
  if(o == null) {
      String v = null;
      // FIXME
      v = (String) r.getValue(a.getName());
    
      if(v == null)
    if(a.getDefault() != null)
        v = a.getDefault().toString();
      if ( v != null ) {
View Full Code Here

            catch (NumberFormatException ex) { step = 5; }

  } else {
      min = 0; max = 100; step = 5;
  }
  RemoteResource r = w.getResource();
  if(o == null) {
      Integer v = (Integer) r.getValue(a.getName());
      if(v == null)
    if(a.getDefault() != null)
        v = (Integer)a.getDefault();
      if ( v != null ) {
    origs = v.intValue();
View Full Code Here

   public void initialize(RemoteResourceWrapper w, Attribute a,  Object o,
        Properties p)
       throws RemoteAccessException
    {
  RemoteResource r = w.getResource();
  if(o == null) {
      Date d = null;
      try {
    d = new Date(((Long)r.getValue(a.getName())).longValue());
   
    if(d == null)
        if(a.getDefault() != null)
      d = new Date(((Long) a.getDefault()).longValue());
      } catch (Exception ex) {
View Full Code Here

    Panel widget;
    Panel addPanel = null;

    protected void addIndexer() {
  if(tf.getText().length() > 0) {
      RemoteResource nrr;
      String selected = combo.getText();
      if(selected != null)
        if (selected.length() >0) {
    try {
        nrr = rrw.getResource().
View Full Code Here

     */
    protected RemoteResource[] getControls()
  throws RemoteAccessException
    {
  if (controls == null) {
      RemoteResource admin = server.getResource();
      String names[] = admin.enumerateResourceIdentifiers();
      Vector vcontrols = new Vector(2);
      for (int i = 0 ; i < names.length ; i++) {
    if ((! names[i].equals("control")) &&
        (! names[i].equals("realms"))) {
        RemoteResource srr = admin.loadResource(names[i]);
        //load the control node
        RemoteResource control = srr.loadResource("control");
        vcontrols.addElement(control);
    }
      }
      controls = new RemoteResource[vcontrols.size()];
      vcontrols.copyInto(controls);
View Full Code Here

    public void resourceActionPerformed(ResourceActionEvent e) {
  switch (e.getResourceActionCommand())
      {
      case ResourceActionEvent.SAVE_EVENT:
    try {
        RemoteResource ctrls[] = getControls();
        for (int i = 0 ; i < ctrls.length ; i++)
      ctrls[i].loadResource("save");
    } catch (RemoteAccessException ex) {
        Message.showErrorMessage(server, ex);
    }
    break;
      case ResourceActionEvent.STOP_EVENT:
    try {
        RemoteResource ctrls[] = getControls();
        for (int i = 0 ; i < ctrls.length ; i++)
      ctrls[i].loadResource("stop");
    } catch (RemoteAccessException ex) {
        Message.showErrorMessage(server, ex);
    }
View Full Code Here

    TextField tf;
    Panel widget;

    protected void addRealm() {
  if(tf.getText().length() > 0) {
      RemoteResource nrr;
      try {
    nrr = rrw.getResource().
        registerResource(tf.getText(),
             "org.w3c.jigsaw.auth.AuthRealm");
      } catch (RemoteAccessException ex) {
View Full Code Here

TOP

Related Classes of org.w3c.jigsaw.admin.RemoteResource

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.