| java.lang.Object org.millstone.base.ui.AbstractComponent org.millstone.base.ui.Link
Link | public class Link extends AbstractComponent (Code) | | Link component.
Link is used to create external or internal URL links.
Internal links can be used to create action items, which
change the state to application to one of the predefined states.
For example, a link can be created for existing MenuTree items.
author: IT Mill Ltd. version: 3.1.1 since: 3.0 |
Constructor Summary | |
public | Link() Creates a new link. | public | Link(Window window) Creates a new link to a window. | public | Link(String caption, Resource resource) | public | Link(String caption, Resource resource, String targetName, int width, int height, int border) Creates a new instance of Link that opens a new window. |
TARGET_BORDER_DEFAULT | final public static int TARGET_BORDER_DEFAULT(Code) | | |
TARGET_BORDER_MINIMAL | final public static int TARGET_BORDER_MINIMAL(Code) | | |
TARGET_BORDER_NONE | final public static int TARGET_BORDER_NONE(Code) | | |
Link | public Link()(Code) | | Creates a new link.
|
Link | public Link(Window window)(Code) | | Creates a new link to a window.
|
Link | public Link(String caption, Resource resource, String targetName, int width, int height, int border)(Code) | | Creates a new instance of Link that opens a new window.
Parameters: caption - Link text. Parameters: targetName - The name of the target window where the link opens to. Empty name of null implies thatthe target is opened to the window containing the link. Parameters: width - Width of the target window. Parameters: height - Height of the target window. Parameters: border - Borget style of the target window. |
getResource | public Resource getResource()(Code) | | Returns the resource this link opens.
Resource |
getTag | public String getTag()(Code) | | Get component UIDL tag.
Component UIDL tag as string. |
getTargetBorder | public int getTargetBorder()(Code) | | Returns the target window border.
int |
getTargetHeight | public int getTargetHeight()(Code) | | Returns the target window height or -1 if not set.
int |
getTargetName | public String getTargetName()(Code) | | Returns the target window name. Empty name of null implies that
the target is opened to the window containing the link.
String |
getTargetWidth | public int getTargetWidth()(Code) | | Returns the target window width or -1 if not set.
int |
getWindow | public Window getWindow()(Code) | | Returns the window this link opens.
Window |
setResource | public void setResource(Resource resource)(Code) | | Sets the resource this link opens.
Parameters: resource - The resource to set |
setTargetBorder | public void setTargetBorder(int targetBorder)(Code) | | Sets the border of the target window.
Parameters: targetBorder - The targetBorder to set |
setTargetHeight | public void setTargetHeight(int targetHeight)(Code) | | Sets the target window height.
Parameters: targetHeight - The targetHeight to set |
setTargetName | public void setTargetName(String targetName)(Code) | | Sets the target window name.
Parameters: targetName - The targetName to set |
setTargetWidth | public void setTargetWidth(int targetWidth)(Code) | | Sets the target window width.
Parameters: targetWidth - The targetWidth to set |
setWindow | public void setWindow(Window window)(Code) | | Sets the window this link opens.
Parameters: window - The window to set |
Methods inherited from org.millstone.base.ui.AbstractComponent | public void addListener(RepaintRequestListener listener)(Code)(Java Doc) public void addListener(Class eventType, Object object, Method method)(Code)(Java Doc) public void addListener(Class eventType, Object object, String methodName)(Code)(Java Doc) public void addListener(Component.Listener listener)(Code)(Java Doc) public void attach()(Code)(Java Doc) public void changeVariables(Object source, Map variables)(Code)(Java Doc) public void childRequestedRepaint(Collection alreadyNotified)(Code)(Java Doc) public void dependsOn(VariableOwner depended)(Code)(Java Doc) public void detach()(Code)(Java Doc) protected void fireComponentErrorEvent()(Code)(Java Doc) protected void fireComponentEvent()(Code)(Java Doc) protected void fireEvent(Component.Event event)(Code)(Java Doc) public Application getApplication()(Code)(Java Doc) public String getCaption()(Code)(Java Doc) public ErrorMessage getComponentError()(Code)(Java Doc) public Object getData()(Code)(Java Doc) public String getDescription()(Code)(Java Doc) public Set getDirectDependencies()(Code)(Java Doc) public ErrorMessage getErrorMessage()(Code)(Java Doc) public Resource getIcon()(Code)(Java Doc) public Locale getLocale()(Code)(Java Doc) public Component getParent()(Code)(Java Doc) public String getStyle()(Code)(Java Doc) abstract public String getTag()(Code)(Java Doc) public Window getWindow()(Code)(Java Doc) public boolean isEnabled()(Code)(Java Doc) public boolean isImmediate()(Code)(Java Doc) public boolean isReadOnly()(Code)(Java Doc) public boolean isVisible()(Code)(Java Doc) final public void paint(PaintTarget target) throws PaintException(Code)(Java Doc) public void paintContent(PaintTarget target) throws PaintException(Code)(Java Doc) public void removeDirectDependency(VariableOwner depended)(Code)(Java Doc) public void removeListener(RepaintRequestListener listener)(Code)(Java Doc) public void removeListener(Class eventType, Object target)(Code)(Java Doc) public void removeListener(Class eventType, Object target, Method method)(Code)(Java Doc) public void removeListener(Class eventType, Object target, String methodName)(Code)(Java Doc) public void removeListener(Component.Listener listener)(Code)(Java Doc) public void requestRepaint()(Code)(Java Doc) public void requestRepaintRequests()(Code)(Java Doc) public void setCaption(String caption)(Code)(Java Doc) public void setComponentError(ErrorMessage componentError)(Code)(Java Doc) public void setData(Object data)(Code)(Java Doc) public void setDescription(String description)(Code)(Java Doc) public void setEnabled(boolean enabled)(Code)(Java Doc) public void setIcon(Resource icon)(Code)(Java Doc) public void setImmediate(boolean immediate)(Code)(Java Doc) public void setLocale(Locale locale)(Code)(Java Doc) public void setParent(Component parent)(Code)(Java Doc) public void setReadOnly(boolean readOnly)(Code)(Java Doc) public void setStyle(String style)(Code)(Java Doc) public void setVisible(boolean visible)(Code)(Java Doc)
|
|
|