⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 visualelement.html

📁 GNetWatch is a free open source Java POJO application that enables real-time graphical monitoring an
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</DL>
<HR>

<A NAME="setImageHost6()"><!-- --></A><H3>
setImageHost6</H3>
<PRE>
public void <B>setImageHost6</B>()</PRE>
<DL>
<DD>Sets the "IPv6 host" icon to this element.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>none.</CODE> - </DL>
</DD>
</DL>
<HR>

<A NAME="setImageInterface()"><!-- --></A><H3>
setImageInterface</H3>
<PRE>
public void <B>setImageInterface</B>()</PRE>
<DL>
<DD>Sets the "inteface" icon to this element.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>none.</CODE> - </DL>
</DD>
</DL>
<HR>

<A NAME="setImageQueue()"><!-- --></A><H3>
setImageQueue</H3>
<PRE>
public void <B>setImageQueue</B>()</PRE>
<DL>
<DD>Sets the "queue" icon to this element.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>none.</CODE> - </DL>
</DD>
</DL>
<HR>

<A NAME="setImageNetwork()"><!-- --></A><H3>
setImageNetwork</H3>
<PRE>
public void <B>setImageNetwork</B>()</PRE>
<DL>
<DD>Sets the "network" icon to this element.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>none.</CODE> - </DL>
</DD>
</DL>
<HR>

<A NAME="getTreeItems()"><!-- --></A><H3>
getTreeItems</H3>
<PRE>
protected java.util.List&lt;org.eclipse.swt.widgets.TreeItem&gt; <B>getTreeItems</B>()</PRE>
<DL>
<DD>Returns the list of tree items that represent this element.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>none.</CODE> - 
<DT><B>Returns:</B><DD>java.util.List<TreeItem> list of tree items.</DL>
</DD>
</DL>
<HR>

<A NAME="isThisOurTreeItem(org.eclipse.swt.widgets.TreeItem)"><!-- --></A><H3>
isThisOurTreeItem</H3>
<PRE>
protected boolean <B>isThisOurTreeItem</B>(org.eclipse.swt.widgets.TreeItem&nbsp;item)</PRE>
<DL>
<DD>Checks that a tree item represents this element.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>item</CODE> - tree item.
<DT><B>Returns:</B><DD>boolean true if this tree item represents this element.</DL>
</DD>
</DL>
<HR>

<A NAME="addTreeItem(org.eclipse.swt.widgets.TreeItem)"><!-- --></A><H3>
addTreeItem</H3>
<PRE>
private void <B>addTreeItem</B>(org.eclipse.swt.widgets.TreeItem&nbsp;treeItem)</PRE>
<DL>
<DD>Adds a tree item to represent this element.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>treeItem</CODE> - tree item to add.</DL>
</DD>
</DL>
<HR>

<A NAME="duplicateTreeItem(java.util.List)"><!-- --></A><H3>
duplicateTreeItem</H3>
<PRE>
private void <B>duplicateTreeItem</B>(java.util.List&lt;org.eclipse.swt.widgets.TreeItem&gt;&nbsp;destination_tree_items)</PRE>
<DL>
<DD>Recursively duplicates this element and its descendants under each of the destination tree items.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>destination_tree_items</CODE> - destination tree items.</DL>
</DD>
</DL>
<HR>

<A NAME="setParent(net.fenyo.gnetwatch.GUI.GUI, org.eclipse.swt.widgets.Tree)"><!-- --></A><H3>
setParent</H3>
<PRE>
protected void <B>setParent</B>(<A HREF="../../../../net/fenyo/gnetwatch/GUI/GUI.html" title="class in net.fenyo.gnetwatch.GUI">GUI</A>&nbsp;gui,
                         org.eclipse.swt.widgets.Tree&nbsp;parent)</PRE>
<DL>
<DD>Attaches this element to the root of a tree.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>gui</CODE> - current GUI instance.<DD><CODE>parent</CODE> - root of the destination tree.</DL>
</DD>
</DL>
<HR>

<A NAME="setParent(net.fenyo.gnetwatch.GUI.GUI, net.fenyo.gnetwatch.GUI.VisualElement)"><!-- --></A><H3>
setParent</H3>
<PRE>
public void <B>setParent</B>(<A HREF="../../../../net/fenyo/gnetwatch/GUI/GUI.html" title="class in net.fenyo.gnetwatch.GUI">GUI</A>&nbsp;gui,
                      <A HREF="../../../../net/fenyo/gnetwatch/GUI/VisualElement.html" title="class in net.fenyo.gnetwatch.GUI">VisualElement</A>&nbsp;parent)</PRE>
<DL>
<DD>Attaches this item under another element.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>gui</CODE> - current GUI instance.<DD><CODE>parent</CODE> - parent element.</DL>
</DD>
</DL>
<HR>

<A NAME="disposeSubItems(org.eclipse.swt.widgets.TreeItem)"><!-- --></A><H3>
disposeSubItems</H3>
<PRE>
private void <B>disposeSubItems</B>(org.eclipse.swt.widgets.TreeItem&nbsp;item)</PRE>
<DL>
<DD>Recursively detaches an item from this element and its descendants.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>item</CODE> - item to detach.</DL>
</DD>
</DL>
<HR>

<A NAME="unsetParent(net.fenyo.gnetwatch.GUI.VisualElement)"><!-- --></A><H3>
unsetParent</H3>
<PRE>
private void <B>unsetParent</B>(<A HREF="../../../../net/fenyo/gnetwatch/GUI/VisualElement.html" title="class in net.fenyo.gnetwatch.GUI">VisualElement</A>&nbsp;parent)</PRE>
<DL>
<DD>Detaches this element from one of its parents.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>parent</CODE> - parent.</DL>
</DD>
</DL>
<HR>

<A NAME="addChild(net.fenyo.gnetwatch.GUI.VisualElement)"><!-- --></A><H3>
addChild</H3>
<PRE>
private void <B>addChild</B>(<A HREF="../../../../net/fenyo/gnetwatch/GUI/VisualElement.html" title="class in net.fenyo.gnetwatch.GUI">VisualElement</A>&nbsp;child)</PRE>
<DL>
<DD>Adds a sub element.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>child</CODE> - element to add.</DL>
</DD>
</DL>
<HR>

<A NAME="getChildren()"><!-- --></A><H3>
getChildren</H3>
<PRE>
public java.util.List&lt;<A HREF="../../../../net/fenyo/gnetwatch/GUI/VisualElement.html" title="class in net.fenyo.gnetwatch.GUI">VisualElement</A>&gt; <B>getChildren</B>()</PRE>
<DL>
<DD>Returns children elements.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>none.</CODE> - 
<DT><B>Returns:</B><DD>java.util.List<VisualElement> children.</DL>
</DD>
</DL>
<HR>

<A NAME="getParents()"><!-- --></A><H3>
getParents</H3>
<PRE>
public java.util.List&lt;<A HREF="../../../../net/fenyo/gnetwatch/GUI/VisualElement.html" title="class in net.fenyo.gnetwatch.GUI">VisualElement</A>&gt; <B>getParents</B>()</PRE>
<DL>
<DD>Returns parents of this element.
<P>
<DD><DL>

<DT><B>Returns:</B><DD>java.util.List<VisualElement> parents.</DL>
</DD>
</DL>
<HR>

<A NAME="contains(net.fenyo.gnetwatch.GUI.VisualElement)"><!-- --></A><H3>
contains</H3>
<PRE>
public boolean <B>contains</B>(<A HREF="../../../../net/fenyo/gnetwatch/GUI/VisualElement.html" title="class in net.fenyo.gnetwatch.GUI">VisualElement</A>&nbsp;elt)</PRE>
<DL>
<DD>Checks that the parameter is a children.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>elt</CODE> - element to check.
<DT><B>Returns:</B><DD>true if the parameter is a children.</DL>
</DD>
</DL>
<HR>

<A NAME="updateText()"><!-- --></A><H3>
updateText</H3>
<PRE>
private void <B>updateText</B>()</PRE>
<DL>
<DD>Updates the displayed text (item name) of this element.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>none.</CODE> - </DL>
</DD>
</DL>
<HR>

<A NAME="updateImage()"><!-- --></A><H3>
updateImage</H3>
<PRE>
private void <B>updateImage</B>()</PRE>
<DL>
<DD>Updates the displayed icon of this element.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>none.</CODE> - </DL>
</DD>
</DL>
<HR>

<A NAME="setItem(java.lang.String)"><!-- --></A><H3>
setItem</H3>
<PRE>
protected void <B>setItem</B>(java.lang.String&nbsp;item)</PRE>
<DL>
<DD>Sets the item name (displayed text).
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>item</CODE> - item name.</DL>
</DD>
</DL>
<HR>

<A NAME="getItem()"><!-- --></A><H3>
getItem</H3>
<PRE>
public java.lang.String <B>getItem</B>()</PRE>
<DL>
<DD>Returns the item name.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>none.</CODE> - 
<DT><B>Returns:</B><DD>void.</DL>
</DD>
</DL>
<HR>

<A NAME="setType(java.lang.String)"><!-- --></A><H3>
setType</H3>
<PRE>
protected void <B>setType</B>(java.lang.String&nbsp;type)</PRE>
<DL>
<DD>Sets the displayed type.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>type</CODE> - type to display.</DL>
</DD>
</DL>
<HR>

<A NAME="setDescription(java.lang.String)"><!-- --></A><H3>
setDescription</H3>
<PRE>
public void <B>setDescription</B>(java.lang.String&nbsp;description)</PRE>
<DL>
<DD>Sets the description.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>description</CODE> - description.</DL>
</DD>
</DL>
<HR>

<A NAME="setImage(org.eclipse.swt.graphics.Image)"><!-- --></A><H3>
setImage</H3>
<PRE>
protected void <B>setImage</B>(org.eclipse.swt.graphics.Image&nbsp;image)</PRE>
<DL>
<DD>Sets the icon.
<P>
<DD><DL>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -