Revision 17770 branches/v10/extensions/extPublish/src/org/gvsig/publish/serversmodel/RemoteResource.java

View differences:

RemoteResource.java
112 112
	}
113 113

  
114 114
	/**
115
	 * All extended classes must be override the method toString.
115
	 * 
116 116
	 * Useful to show in a tree.   
117 117
	 */
118
	public abstract String toString();
118
	public String toString(){
119
		if (getTitle()==null  || getTitle().equals(""))
120
			return getType();
121
		return getTitle();
122
	}
119 123
	/**
120 124
	 * 
121 125
	 * @return the service which serves this remote resource
......
157 161
		childs.put(r.getLayerInfo().getName(), r);
158 162
	}
159 163
	/**
164
	 * Removes itself from its service
165
	 */
166
	public void remove(){
167
		getService().removeRemoteResource(this);
168
	}
169
	/**
160 170
	 * Call the method publish of each child
161 171
	 * @throws PublishException
162 172
	 */

Also available in: Unified diff