本文整理了Java中javax.swing.Timer.restart()
方法的一些代码示例,展示了Timer.restart()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Timer.restart()
方法的具体详情如下:
包路径:javax.swing.Timer
类名称:Timer
方法名:restart
暂无
代码示例来源:origin: org.netbeans.api/org-openide-util
clearIntrospector.restart();
代码示例来源:origin: bobbylight/RSyntaxTextArea
/**
* Called when the caret moves in the text area.
*
* @param e The event.
*/
@Override
public void caretUpdate(CaretEvent e) {
timer.restart();
}
代码示例来源:origin: bobbylight/RSyntaxTextArea
/**
* Restarts parsing the document.
*
* @see #stopParsing()
*/
public void restartParsing() {
timer.restart();
running = true;
}
代码示例来源:origin: bobbylight/RSyntaxTextArea
/**
* Called when the document is modified.
*
* @param e The document event.
*/
public void handleDocumentEvent(DocumentEvent e) {
if (running && parsers.size()>0) {
timer.restart();
}
}
代码示例来源:origin: magefree/mage
@Override
public void componentResized(ComponentEvent e) {
if (!initComponents) {
if (resizeTimer.isRunning()) {
resizeTimer.restart();
} else {
resizeTimer.start();
}
}
}
};
代码示例来源:origin: bobbylight/RSyntaxTextArea
/**
* Adds a parser for the text area.
*
* @param parser The new parser. If this is <code>null</code>, nothing
* happens.
* @see #getParser(int)
* @see #removeParser(Parser)
*/
public void addParser(Parser parser) {
if (parser!=null && !parsers.contains(parser)) {
if (running) {
timer.stop();
}
parsers.add(parser);
if (parsers.size()==1) {
// Okay to call more than once.
ToolTipManager.sharedInstance().registerComponent(textArea);
}
if (running) {
timer.restart();
}
}
}
代码示例来源:origin: org.netbeans.api/org-openide-util-ui
clearIntrospector.restart();
代码示例来源:origin: stackoverflow.com
public void actionPerformed(ActionEvent e) {
shapes = createShapeList();
timer.restart();
代码示例来源:origin: stackoverflow.com
timer.restart();
startStopButton.setText("Stop");
isTimerRunning = true;
代码示例来源:origin: stackoverflow.com
thatsAllFolks();
timer.restart();
代码示例来源:origin: com.fifesoft/rsyntaxtextarea
/**
* Called when the caret moves in the text area.
*
* @param e The event.
*/
@Override
public void caretUpdate(CaretEvent e) {
timer.restart();
}
代码示例来源:origin: chatty/chatty
private void mouseExited() {
if (!closed && regularTimer != null) {
regularTimer.restart();
}
}
代码示例来源:origin: com.fifesoft/rsyntaxtextarea
/**
* Called when the document is modified.
*
* @param e The document event.
*/
public void handleDocumentEvent(DocumentEvent e) {
if (running && parsers.size()>0) {
timer.restart();
}
}
代码示例来源:origin: org.apache.uima/uimaj-tools
@Override
public void controlResumed() {
mPaused = false;
statusLabel.setText("Resumed");
if (indeterminateProgressPause)
progressBar.setIndeterminate(true);
mCPE.resume();
progressTimer.restart();
performanceQueryTimer.restart();
}
代码示例来源:origin: org.netbeans.api/org-netbeans-api-progress
protected void resetTimer(int initialDelay, boolean restart) {
timer.setInitialDelay(initialDelay);
if (restart) {
timer.restart();
}
}
代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql
private void onKeyTyped(KeyEvent e)
{
if(false == e.isActionKey())
{
_parserTimer.restart();
}
}
代码示例来源:origin: chatty/chatty
@Override
public void actionPerformed(ActionEvent e) {
if (!g.search(owner, searchText.getText())) {
searchText.setBackground(COLOR_NO_RESULT);
timer.restart();
}
}
};
代码示例来源:origin: org.swinglabs.swingx/swingx-all
@Override
public void eventDispatched(AWTEvent aWTEvent) {
//reset the timer
idleTimer.stop();
//if the user is idle, then change to not idle
if (isIdle()) {
setIdle(false);
}
//start the timer
idleTimer.restart();
}
};
代码示例来源:origin: protegeproject/protege
private void handleDocumentUpdated() {
timer.restart();
clearError();
performHighlighting();
notifyValidationChanged(false); // updates always disable until parsed
}
代码示例来源:origin: protegeproject/protege
private void performFind() {
if(this.settingText) {
return;
}
searchStartedHandler.handleSearchStarted();
timer.setDelay((int) OWLEntityFinderPreferences.getInstance().getSearchDelay());
timer.restart();
}
内容来源于网络,如有侵权,请联系作者删除!