Changeset 12466


Ignore:
Timestamp:
2006-08-18T09:30:30+12:00 (18 years ago)
Author:
shaoqun
Message:

added code for download pane

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/Gatherer.java

    r12452 r12466  
    117117    static public final int PREFERENCES_CHANGED = 3;
    118118
     119   //////kk added//////// 
     120    static public String cgiBase="";
     121    /////////////////
    119122
    120123    /** Magic to allow Enter to fire the default button. */
  • trunk/gli/src/org/greenstone/gatherer/cdm/Argument.java

    r12251 r12466  
    7171    /** An element of the argument type enumeration specifying a metadata set combobox control. */
    7272    static final public byte METADATA_SET_NAMESPACE = 9;
     73
     74 ///////////kk added the number was 9, I changed it to 10//////////////
     75  /** An element of the argument type enumeration specifying a text field. */
     76    static final public byte URL = 10;
     77    /////////////////////////////////////////////////////////////////
     78
    7379    /** true if this argument should actually be hidden within the GLI. This is important for arguments such as import dir or other location critical arguments. */
    7480    private boolean hidden_gli = false;
     
    97103    /** The plugin that owns this argument, for the purposes of visualising inheritance. */
    98104    private String owner = null;
     105
     106    private String display_name = null;
    99107
    100108    /** Default Constructor. */
     
    226234    }
    227235
     236    public String getDisplayName() {
     237    return display_name;
     238    }
     239
     240
    228241    /** Method to retrieve the option list for this argument.
    229242     * @return a HashMap containing <option value> -> <description> entries
     
    270283    public boolean isAssigned() {
    271284    return (element != null && element.getAttribute(StaticStrings.ASSIGNED_ATTRIBUTE).equals(StaticStrings.TRUE_STR));
     285    }
     286
     287    /** Determine if this is a custom argument ie one that has been parsed from the config file but doesn't have a matching entry in the argument library.
     288     * @return true if this argument is a custom, false otherwise
     289     * @see org.greenstone.gatherer.util.StaticStrings#CUSTOM_ATTRIBUTE
     290     * @see org.greenstone.gatherer.util.StaticStrings#TRUE_STR
     291     */
     292    public boolean isCustomArgument() {
     293    return (element != null && element.getAttribute(StaticStrings.CUSTOM_ATTRIBUTE).equals(StaticStrings.TRUE_STR));
    272294    }
    273295
  • trunk/gli/src/org/greenstone/gatherer/cdm/ArgumentContainer.java

    r12279 r12466  
    288288    }
    289289
     290  public  ArrayList getArguments(boolean include_normal, boolean include_custom){return this;};
     291    /** Method to retrieve this containers custom argument string.
     292     * @return the custom arguments as a String
     293     */
    290294}
Note: See TracChangeset for help on using the changeset viewer.