1 20 21 package org.apache.directory.ldapstudio.valueeditors; 22 23 24 import org.apache.directory.ldapstudio.browser.core.model.AttributeHierarchy; 25 import org.apache.directory.ldapstudio.browser.core.model.IConnection; 26 import org.apache.directory.ldapstudio.browser.core.model.IEntry; 27 import org.apache.directory.ldapstudio.browser.core.model.IValue; 28 import org.apache.directory.ldapstudio.browser.core.model.ModelModificationException; 29 import org.eclipse.jface.resource.ImageDescriptor; 30 import org.eclipse.jface.viewers.CellEditor; 31 import org.eclipse.swt.widgets.Composite; 32 33 34 42 public interface IValueEditor 43 { 44 45 56 public abstract String getDisplayValue( AttributeHierarchy attributeHierarchy ); 57 58 59 68 public abstract String getDisplayValue( IValue value ); 69 70 71 89 public abstract Object getRawValue( AttributeHierarchy attributeHierarchy ); 90 91 92 107 public abstract Object getRawValue( IValue value ); 108 109 110 125 public abstract Object getRawValue( IConnection connection, Object stringOrBinaryValue ); 126 127 128 139 public abstract Object getStringOrBinaryValue( Object rawValue ); 140 141 142 148 public abstract String getValueEditorName(); 149 150 151 160 public abstract void setValueEditorName( String name ); 161 162 163 169 public abstract ImageDescriptor getValueEditorImageDescriptor(); 170 171 172 181 public abstract void setValueEditorImageDescriptor( ImageDescriptor imageDescriptor ); 182 183 184 196 public abstract void createValue( IEntry entry, String attributeDescription, Object newRawValue ) 197 throws ModelModificationException; 198 199 200 211 public abstract void modifyValue( IValue value, Object newRawValue ) throws ModelModificationException; 212 213 214 224 public abstract void deleteAttribute( AttributeHierarchy attributeHierarchy ) throws ModelModificationException; 225 226 227 237 public abstract void deleteValue( IValue oldValue ) throws ModelModificationException; 238 239 240 245 public abstract void create( Composite parent ); 246 247 248 251 public abstract void dispose(); 252 253 254 265 public abstract CellEditor getCellEditor(); 266 } 267 | Popular Tags |