public class ProxyFindAndReplacable extends Object implements FindAndReplaceable
Modifier and Type | Field and Description |
---|---|
protected int |
end |
protected boolean |
isReplaceAll |
protected String |
newValue |
protected String |
oldValue |
protected FindAndReplaceable |
proxytarget |
protected StringBuilder |
sbtartget |
protected int |
start |
Constructor and Description |
---|
ProxyFindAndReplacable(FindAndReplaceable proxytarget) |
Modifier and Type | Method and Description |
---|---|
void |
flushSBText() |
int |
getCaretPosition() |
String |
getDialogText() |
JComponent |
getEditComponent() |
int |
getEnd() |
String |
getNewValue() |
String |
getOldValue() |
FindAndReplaceable |
getProxytarget() |
String |
getSelectedText() |
int |
getSelectionEnd() |
int |
getSelectionStart() |
int |
getStart() |
String |
getText() |
boolean |
isEditable() |
boolean |
isReplaceAll() |
void |
select(int start,
int end) |
void |
setCarretPosition(boolean forward) |
void |
setNewValue(String newValue) |
void |
setOldValue(String oldValue) |
void |
setReplaceAll(boolean isReplaceAll) |
void |
setSBTarget() |
void |
setSelectedText(String txt) |
protected FindAndReplaceable proxytarget
protected boolean isReplaceAll
protected StringBuilder sbtartget
protected String oldValue
protected String newValue
protected int start
protected int end
public ProxyFindAndReplacable(FindAndReplaceable proxytarget)
public void setSBTarget()
public FindAndReplaceable getProxytarget()
public int getCaretPosition()
getCaretPosition
in interface FindAndReplaceable
public String getSelectedText()
getSelectedText
in interface FindAndReplaceable
public int getSelectionEnd()
getSelectionEnd
in interface FindAndReplaceable
public int getSelectionStart()
getSelectionStart
in interface FindAndReplaceable
public String getText()
getText
in interface FindAndReplaceable
public String getDialogText()
public boolean isEditable()
isEditable
in interface FindAndReplaceable
public void select(int start, int end)
select
in interface FindAndReplaceable
public void setSelectedText(String txt)
setSelectedText
in interface FindAndReplaceable
public boolean isReplaceAll()
public void setReplaceAll(boolean isReplaceAll)
public String getOldValue()
public void setOldValue(String oldValue)
public String getNewValue()
public void setNewValue(String newValue)
public void flushSBText()
public void setCarretPosition(boolean forward)
public int getStart()
public int getEnd()
public JComponent getEditComponent()
getEditComponent
in interface FindAndReplaceable
Copyright © 2019. All Rights Reserved.