📄 textshellaction.java
字号:
package org.goshawk.workflow.GUI.Action;
import java.awt.TextField;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import org.goshawk.workflow.GUI.ShapeShell.ContentShapeShell;
public class TextShellAction implements FocusListener
{
ContentShapeShell shape = null;
public TextShellAction(ContentShapeShell shape)
{
this.shape = shape;
}
public void focusGained(FocusEvent e)
{
}
public void focusLost(FocusEvent e)
{
TextField text = (TextField) e.getComponent();
shape.setContent(text.getText());
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -