|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.mozilla.javascript.ScriptableObject
jp.carabiner.treeeditor.js.model.JSTreeNode
public class JSTreeNode
ツリーノードです。
| 入れ子のクラスの概要 | |
|---|---|
static class |
JSTreeNode.FunctionWrapper<T extends org.mozilla.javascript.Scriptable>
関数のラッパです。 |
class |
JSTreeNode.JSChildTreeNodes
子アイテムリストです。 |
| インタフェース jp.carabiner.treeeditor.js.JSComponent から継承された入れ子のクラス/インタフェース |
|---|
JSComponent.AttachContext<T> |
| フィールドの概要 |
|---|
| クラス org.mozilla.javascript.ScriptableObject から継承されたフィールド |
|---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
| インタフェース org.mozilla.javascript.Scriptable から継承されたフィールド |
|---|
NOT_FOUND |
| コンストラクタの概要 | |
|---|---|
JSTreeNode(ToplevelObject owner,
jp.carabiner.treeeditor.TreeEditorModel model,
String text)
構築します。 |
|
JSTreeNode(ToplevelObject owner,
jp.carabiner.treeeditor.TreeEditorModel model,
TreeNode treeNode)
構築します。 |
|
| メソッドの概要 | |
|---|---|
JSComponent<TreeNode> |
appendChild(JSComponent<TreeNode> node)
子を追加します。 |
Object |
get(String name,
org.mozilla.javascript.Scriptable start)
|
Object[] |
getAllIds()
|
Color |
getBackground()
背景色を取得します。 |
JSChildNodes<JSComponent<TreeNode>> |
getChildNodes()
子ノードのリストを取得します。 |
String |
getClassName()
|
JSColumn |
getColumn(int index)
カラムを取得します。 |
PropertySet |
getColumnProps()
カラム用のプロパティセットを取得します。 |
TreeNode |
getCore()
コアオブジェクトを取得します。 |
TreeNode |
getCoreForAttach(JSComponent.AttachContext<TreeNode> ctx)
コアオブジェクトを取得します。 |
TreeNode |
getCoreForDetach()
コアオブジェクトを削除用に取得します。 |
long |
getCreateTime()
作成日時を取得します。 |
Object |
getDefaultValue(Class<?> typeHint)
|
InputStream |
getFileData()
ファイルデータを取得します。 |
long |
getFileLastModified()
ファイルの最終更新時刻を取得します。 |
String |
getFilename()
ファイル名を取得します。 |
Color |
getForeground()
文字色を取得します。 |
String |
getHtml()
|
String |
getHTML()
|
InputStream |
getImageData()
画像データを取得します。 |
String |
getImageFilename()
画像ファイル名を取得します。 |
static String |
getMethodName(String prefix,
String body)
メソッド名を取得します。 |
jp.carabiner.treeeditor.TreeEditorModel |
getModel()
モデルを取得します。 |
String |
getNodeType()
ノードタイプを取得します。 |
int |
getNumber()
番号を取得します。 |
jp.carabiner.treeeditor.op.CompositeOp |
getOwnerOp()
操作オブジェクトを取得します。 |
JSTreeNode |
getParentNode()
親ノードを取得します。 |
String |
getText()
テキストを取得します。 |
int |
getTopicType()
トピックタイプを取得します。 |
jp.carabiner.treeeditor.TreeEditorContext |
getTreeEditorContext()
コンテキストを取得します。 |
String |
getType()
タイプを取得します。 |
long |
getUpdateTime()
更新日時を取得します。 |
boolean |
has(String name,
org.mozilla.javascript.Scriptable start)
|
JSComponent<TreeNode> |
insertBefore(JSComponent<TreeNode> newNode,
JSComponent<TreeNode> refNode)
子ノードを挿入します。 |
boolean |
isExpand()
展開されているかどうかを判定します。 |
boolean |
isPanelEditable()
編集可能かどうかを判定します。 |
boolean |
isSelected()
選択されているかどうかを判定します。 |
boolean |
isTextEditable()
編集可能かどうかを判定します。 |
static int |
parseColor(Color color)
色オブジェクトを解析し数値表現を取得します。 |
static int |
parseColor(org.mozilla.javascript.Scriptable color)
色オブジェクトを解析し数値表現を取得します。 |
JSComponent<TreeNode> |
removeChild(JSComponent<TreeNode> node)
子を削除します。 |
InputStream |
renderPNGImage(int preferredWidth,
int preferredHeight)
画像データを取得します。 |
void |
setBackground(Color background)
背景色を設定します。 |
void |
setBackground(org.mozilla.javascript.Scriptable background)
背景色を設定します。 |
void |
setCreateTime(double time)
作成日時を設定します。 |
void |
setExpand(boolean expand)
展開されているかどうかを設定します。 |
void |
setFile(String filename,
long lastModified,
InputStream in)
ファイルをノードに設定します。 |
void |
setForeground(Color foreground)
文字色を設定します。 |
void |
setForeground(org.mozilla.javascript.Scriptable foreground)
文字色を設定します。 |
void |
setHtml(String html)
|
void |
setHTML(String html)
|
void |
setImage(String filename,
InputStream in)
画像をノードに設定します。 |
void |
setNodeType(String nodeType)
ノードタイプを設定します。 |
void |
setPanelEditable(boolean editable)
編集可能かどうかを設定します。 |
void |
setSelected(boolean selected)
選択されているかどうかを設定します。 |
void |
setText(String text)
テキストを設定します。 |
void |
setTextEditable(boolean editable)
編集可能かどうかを設定します。 |
void |
setTopicType(int topicType)
トピックタイプを設定します。 |
void |
setUpdateTime(double time)
更新日時を設定します。 |
static Color |
toColor(int color)
色オブジェクトを生成します。 |
| クラス org.mozilla.javascript.ScriptableObject から継承されたメソッド |
|---|
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, get, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, hasInstance, hasProperty, hasProperty, isConst, isGetterOrSetter, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public JSTreeNode(ToplevelObject owner,
jp.carabiner.treeeditor.TreeEditorModel model,
TreeNode treeNode)
owner - オーナー。nullは不可。model - モデル。nullは不可。treeNode - ツリーノード。nullは不可。
public JSTreeNode(ToplevelObject owner,
jp.carabiner.treeeditor.TreeEditorModel model,
String text)
owner - オーナー。nullは不可。model - モデル。nullは不可。text - テキスト。nullは不可。| メソッドの詳細 |
|---|
public static Color toColor(int color)
color - 色。未定義色も可。
public static int parseColor(Color color)
color - 色。null可。
public static int parseColor(org.mozilla.javascript.Scriptable color)
color - 色。null可。
public static String getMethodName(String prefix,
String body)
prefix - プレフィックス。nullは不可。body - 本体。nullは不可。
public jp.carabiner.treeeditor.TreeEditorModel getModel()
public jp.carabiner.treeeditor.TreeEditorContext getTreeEditorContext()
public PropertySet getColumnProps()
public TreeNode getCore()
JSComponent の記述:
JSComponent<TreeNode> 内の getCorepublic TreeNode getCoreForAttach(JSComponent.AttachContext<TreeNode> ctx)
JSComponent の記述:
JSComponent<TreeNode> 内の getCoreForAttachctx - コンテキスト。nullは不可。
public TreeNode getCoreForDetach()
JSComponent の記述:
JSComponent<TreeNode> 内の getCoreForDetachpublic String getType()
JSComponent の記述:
JSComponent<TreeNode> 内の getTypepublic JSTreeNode getParentNode()
JSComponent の記述:
JSComponent<TreeNode> 内の getParentNodepublic String getText()
public String getHTML()
public String getHtml()
public void setHTML(String html)
throws IOException
IOException
public void setHtml(String html)
throws IOException
IOExceptionpublic void setText(String text)
text - テキスト。public int getNumber()
public boolean isSelected()
public void setSelected(boolean selected)
selected - 選択されているかどうか。public long getUpdateTime()
public void setUpdateTime(double time)
time - 更新日時。public long getCreateTime()
public void setCreateTime(double time)
time - 作成日時。public String getNodeType()
public void setNodeType(String nodeType)
nodeType - ノードタイプ。nullは不可。public int getTopicType()
TreeEditorConstpublic void setTopicType(int topicType)
topicType - トピックタイプ。定数についてはTreeEditorConstクラスを参照。TreeEditorConstpublic Color getForeground()
public void setForeground(Color foreground)
foreground - 文字色。null可。public void setForeground(org.mozilla.javascript.Scriptable foreground)
foreground - 文字色。null可。public Color getBackground()
public void setBackground(org.mozilla.javascript.Scriptable background)
background - 背景色。null可。public void setBackground(Color background)
background - 背景色。null可。public boolean isExpand()
public void setExpand(boolean expand)
expand - 展開されている場合はtrue。public JSComponent<TreeNode> appendChild(JSComponent<TreeNode> node)
JSContainer<TreeNode> 内の appendChildnode - 追加する子ノード。nullは不可。
public JSComponent<TreeNode> insertBefore(JSComponent<TreeNode> newNode,
JSComponent<TreeNode> refNode)
JSContainer<TreeNode> 内の insertBeforenewNode - 追加するノード。nullは不可。refNode - 挿入先を示すノード。末尾の場合はnull。
public JSComponent<TreeNode> removeChild(JSComponent<TreeNode> node)
JSContainer<TreeNode> 内の removeChildnode - 削除する子ノード。nullは不可。
public JSChildNodes<JSComponent<TreeNode>> getChildNodes()
JSContainer<TreeNode> 内の getChildNodes
public void setImage(String filename,
InputStream in)
throws IOException
filename - ファイル名。nullの場合は画像を削除する。in - 画像ファイルのストリーム。nullが指定された場合は画像を削除する。
IOException - 入出力時のエラー。
public InputStream getImageData()
throws IOException
IOException - 入出力時のエラー。public String getImageFilename()
IOException - 入出力時のエラー。
public InputStream renderPNGImage(int preferredWidth,
int preferredHeight)
throws IOException
preferredWidth - 推奨幅。preferredHeight - 推奨高さ。
IOException - 入出力関係のエラー。
public void setFile(String filename,
long lastModified,
InputStream in)
throws IOException
filename - ファイル名。nullの場合は画像を削除する。lastModified - 最終更新時刻。in - 画像ファイルのストリーム。nullが指定された場合は画像を削除する。
IOException - 入出力時のエラー。
public InputStream getFileData()
throws IOException
IOException - 入出力時のエラー。public String getFilename()
IOException - 入出力時のエラー。public long getFileLastModified()
public JSColumn getColumn(int index)
index - インデックス。
public boolean isTextEditable()
public void setTextEditable(boolean editable)
editable - 編集可能な場合はtrue。public boolean isPanelEditable()
public void setPanelEditable(boolean editable)
editable - 編集可能な場合はtrue。public jp.carabiner.treeeditor.op.CompositeOp getOwnerOp()
public String getClassName()
org.mozilla.javascript.Scriptable 内の getClassNameorg.mozilla.javascript.ScriptableObject 内の getClassName
public Object get(String name,
org.mozilla.javascript.Scriptable start)
org.mozilla.javascript.Scriptable 内の getorg.mozilla.javascript.ScriptableObject 内の getpublic Object[] getAllIds()
org.mozilla.javascript.debug.DebuggableObject 内の getAllIdsorg.mozilla.javascript.ScriptableObject 内の getAllIds
public boolean has(String name,
org.mozilla.javascript.Scriptable start)
org.mozilla.javascript.Scriptable 内の hasorg.mozilla.javascript.ScriptableObject 内の haspublic Object getDefaultValue(Class<?> typeHint)
org.mozilla.javascript.Scriptable 内の getDefaultValueorg.mozilla.javascript.ScriptableObject 内の getDefaultValue
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||