public class EdbChronoPane extends EdbEditorObject implements EdbUndo.Undoable, DragGestureListener, EdbDnDAnyDropTarget, Transferable
Modifier and Type | Field and Description |
---|---|
static String |
Act_ChronoClear |
static String |
Act_ChronoClearFrom |
static String |
Act_ChronoClearTo |
static String |
Act_ChronoFrom2To |
static String |
Act_ChronoTo2From |
(package private) static DataFlavor |
dataFlavor_EdbChronoPane |
protected EdbLabel |
label |
protected int |
myDateFrom |
protected int |
myDateTo |
protected EdbPanel |
panel |
protected EdbLabel |
postfix |
protected EdbLabel |
prefix |
editorOwner, s_changeListeners
Constructor and Description |
---|
EdbChronoPane(EdbEditorOwner eo,
String pre,
int df,
int dt,
String post) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent ae) |
void |
addMouseListener(MouseListener ml) |
void |
dragGestureRecognized(DragGestureEvent dge) |
boolean |
edbDnDDrop(DropTargetDropEvent dtde)
ドロップターゲット領域内でドロップしたときに呼び出されます.
|
boolean |
edbDnDDropAcceptable(DropTargetDragEvent dtde)
受け入れ可能なFlavorか?
|
boolean |
edbDnDDropTargetIsReady()
ドロップターゲットのReady状態の取得.
|
void |
edbDnDDropTargetSelected(boolean sel)
ドロップターゲット領域内でドラッグのEnter/Exit時に呼び出されます.
|
void |
edit()
ウインドウを表示し,期間限定の入力を行います.
|
boolean |
endEdit() |
EdbDate |
getDateFrom()
期間(始まり)を取得します.
|
EdbDate |
getDateTo()
期間(終わり)を取得します.
|
EdbPanel |
getPanel() |
String |
getText() |
Object |
getTransferData(DataFlavor flavor) |
DataFlavor[] |
getTransferDataFlavors() |
boolean |
isDataFlavorSupported(DataFlavor flavor) |
boolean |
isEditable() |
void |
mouseClicked(MouseEvent e) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
protected boolean |
mousePopupShow(MouseEvent e)
Popupメニューを表示する.
|
void |
registProxyDragGestureRecognizer(int act,
DragGestureListener lis)
Register Drag Gesture Recognizer for parent object (proxy).
|
boolean |
setDateFrom(EdbDate d) |
boolean |
setDateFrom(EdbDate d,
boolean undoable)
期間(始まり)を設定します.
|
boolean |
setDateFrom(int d) |
boolean |
setDateFrom(int d,
boolean undoable)
期間(始まり)を設定します.
|
boolean |
setDateFromTo(EdbDate f,
EdbDate t) |
boolean |
setDateFromTo(EdbDate f,
EdbDate t,
boolean undoable)
期間を設定します.
|
boolean |
setDateTo(EdbDate d) |
boolean |
setDateTo(EdbDate d,
boolean undoable)
期間(終わり)を設定します.
|
boolean |
setDateTo(int d) |
boolean |
setDateTo(int d,
boolean undoable)
期間(終わり)を設定します.
|
void |
setEditable(boolean e) |
void |
setFgc(Color c)
前景色を設定します.
|
void |
setFont(Font f)
前置ラベル,値ラベル,後置ラベルのフォントを設定します.
|
void |
setLabelFgc(Color c)
値ラベルの背景色を設定します.
|
void |
setLabelFont(Font f)
値ラベルのフォントを設定します.
|
void |
setSubFgc(Color c) |
void |
setSubFont(Font f)
前置ラベル,後置ラベルのフォントを設定します.
|
boolean |
setText(String s) |
void |
setToolTipText(String t)
ツールヒントに表示するテキストを登録します.このテキストは,カーソルがコンポーネント上にあるときに表示されます.
|
void |
show() |
boolean |
startEdit() |
boolean |
undo(Object o) |
createMenuItem_Edit, createMenuItem_Edit, dragDropEnd, dragEnter, dragExit, dragOver, dropActionChanged, getWidth, isVisible, setVisible
addChangeListener, createAction_EndOfEdit, createAction_RotateFocus, editorObjectInnovateEditor, editorObjectNotifyChanged, editorObjectNotifyWillChange, editorObjectRequestDuplicate, editorObjectRequestInsert, editorObjectRequestRemove, editorObjectRequestReplace, editorObjectRequestVisible, editorObjectRotateFocus, editorObjectUndoPush, editorOwnerDuplicateObject, editorOwnerInsertObject, editorOwnerIsEditable, editorOwnerObjectChanged, editorOwnerObjectVisibleRequested, editorOwnerObjectWillChange, editorOwnerRemoveObject, editorOwnerReplaceObject, editorOwnerRotateFocus, getBrowser, getEDB, getEditor, getTracePrintWriter, isSimpleButton1Click, isSimpleButton1Click2, lockBrowser, mousePressed, mouseReleased, unlockBrowser
protected int myDateFrom
protected int myDateTo
protected EdbPanel panel
protected EdbLabel prefix
protected EdbLabel label
protected EdbLabel postfix
public static final String Act_ChronoTo2From
public static final String Act_ChronoFrom2To
public static final String Act_ChronoClearFrom
public static final String Act_ChronoClearTo
public static final String Act_ChronoClear
static DataFlavor dataFlavor_EdbChronoPane
public EdbChronoPane(EdbEditorOwner eo, String pre, int df, int dt, String post)
public EdbPanel getPanel()
getPanel
in class EdbEditorObject
public void registProxyDragGestureRecognizer(int act, DragGestureListener lis)
registProxyDragGestureRecognizer
in class EdbEditorObject
act
- drag actionlis
- drag gesture listenerpublic void setEditable(boolean e)
setEditable
in class EdbEditorObject
public boolean isEditable()
isEditable
in class EdbEditorObject
public boolean startEdit()
startEdit
in class EdbEditorObject
public boolean endEdit()
endEdit
in class EdbEditorObject
public boolean setText(String s)
setText
in class EdbEditorObject
public String getText()
getText
in class EdbEditorObject
public void addMouseListener(MouseListener ml)
addMouseListener
in class EdbEditorObject
public void edit()
edit
in class EdbEditorObject
public void setToolTipText(String t)
setToolTipText
in class EdbEditorObject
t
- 示する文字列.テキストが null の場合は,このコンポーネントのツールヒントはオフに設定されるpublic void setLabelFont(Font f)
f
- フォントpublic void setSubFont(Font f)
setSubFont
in class EdbEditorObject
f
- フォントpublic void setFont(Font f)
setFont
in class EdbEditorObject
f
- フォントpublic void setLabelFgc(Color c)
c
- 背景色public void setSubFgc(Color c)
setSubFgc
in class EdbEditorObject
public void setFgc(Color c)
setFgc
in class EdbEditorObject
c
- 前景色.public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
mouseClicked
in class EdbEditorUnit
protected boolean mousePopupShow(MouseEvent e)
mousePopupShow
in class EdbEditorUnit
e
- Mouse Event.public void actionPerformed(ActionEvent ae)
actionPerformed
in interface ActionListener
actionPerformed
in class EdbEditorObject
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
mouseEntered
in class EdbEditorUnit
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
mouseExited
in class EdbEditorUnit
public void show()
show
in class EdbEditorObject
public boolean undo(Object o)
undo
in interface EdbUndo.Undoable
public boolean setDateFrom(int d, boolean undoable)
d
- 日付undoable
- アンドゥ可能性.true
,失敗した場合は false
を返します.public boolean setDateFrom(int d)
public boolean setDateTo(int d, boolean undoable)
d
- 日付undoable
- アンドゥ可能性.true
,失敗した場合は false
を返します.public boolean setDateTo(int d)
public boolean setDateFrom(EdbDate d, boolean undoable)
d
- 日付undoable
- アンドゥ可能性.true
,失敗した場合は false
を返します.public boolean setDateFrom(EdbDate d)
public boolean setDateTo(EdbDate d, boolean undoable)
d
- 日付undoable
- アンドゥ可能性.true
,失敗した場合は false
を返します.public boolean setDateTo(EdbDate d)
public boolean setDateFromTo(EdbDate f, EdbDate t, boolean undoable)
f
- 期間(始まり)t
- 期間(終わり)undoable
- アンドゥ可能性.true
,失敗した場合は false
を返します.public EdbDate getDateFrom()
public EdbDate getDateTo()
public Object getTransferData(DataFlavor flavor)
getTransferData
in interface Transferable
public DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface Transferable
public boolean isDataFlavorSupported(DataFlavor flavor)
isDataFlavorSupported
in interface Transferable
public void dragGestureRecognized(DragGestureEvent dge)
dragGestureRecognized
in interface DragGestureListener
public boolean edbDnDDropTargetIsReady()
edbDnDDropTargetIsReady
in interface EdbDnDDropTarget
public void edbDnDDropTargetSelected(boolean sel)
edbDnDDropTargetSelected
in interface EdbDnDDropTarget
sel
- セレクション状態.public boolean edbDnDDropAcceptable(DropTargetDragEvent dtde)
edbDnDDropAcceptable
in interface EdbDnDAnyDropTarget
dtde
- DropTargetDragEventpublic boolean edbDnDDrop(DropTargetDropEvent dtde) throws Exception
edbDnDDrop
in interface EdbDnDAnyDropTarget
dtde
- DropTargetDropEventException
- ExceptionEDB Working Group at Tue Jun 10 17:08:59 JST 2025