亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? basictextui.java

?? JAVA的一些源碼 JAVA2 STANDARD EDITION DEVELOPMENT KIT 5.0
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
    InputMap getInputMap() {	InputMap map = new InputMapUIResource();	InputMap shared = 	    (InputMap)DefaultLookup.get(editor, this,            getPropertyPrefix() + ".focusInputMap");	if (shared != null) {	    map.setParent(shared);	}	return map;    }    /**     * Invoked when the focus accelerator changes, this will update the     * key bindings as necessary.     */    void updateFocusAcceleratorBinding(boolean changed) {	char accelerator = editor.getFocusAccelerator();	if (changed || accelerator != '\0') {	    InputMap km = SwingUtilities.getUIInputMap		        (editor, JComponent.WHEN_IN_FOCUSED_WINDOW);	    if (km == null && accelerator != '\0') {		km = new ComponentInputMapUIResource(editor);		SwingUtilities.replaceUIInputMap(editor, JComponent.						 WHEN_IN_FOCUSED_WINDOW, km);		ActionMap am = getActionMap();		SwingUtilities.replaceUIActionMap(editor, am);	    }	    if (km != null) {		km.clear();		if (accelerator != '\0') {		    km.put(KeyStroke.getKeyStroke(accelerator,						  ActionEvent.ALT_MASK),			   "requestFocus");		}	    }	}    }    /**     * Invoked when editable property is changed.     *     * removing 'TAB' and 'SHIFT-TAB' from traversalKeysSet in case      * editor is editable     * adding 'TAB' and 'SHIFT-TAB' to traversalKeysSet in case      * editor is non editable     */     void updateFocusTraversalKeys() {	/*	 * Fix for 4514331 Non-editable JTextArea and similar 	 * should allow Tab to keyboard - accessibility 	 */	EditorKit editorKit = getEditorKit(editor);	if ( editorKit != null	     && editorKit instanceof DefaultEditorKit) {	    Set storedForwardTraversalKeys = editor.		getFocusTraversalKeys(KeyboardFocusManager.				      FORWARD_TRAVERSAL_KEYS);	    Set storedBackwardTraversalKeys = editor.		getFocusTraversalKeys(KeyboardFocusManager.				      BACKWARD_TRAVERSAL_KEYS);	    Set forwardTraversalKeys = 		new HashSet(storedForwardTraversalKeys);	    Set backwardTraversalKeys = 		new HashSet(storedBackwardTraversalKeys);	    if (editor.isEditable()) {		forwardTraversalKeys.		    remove(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0));		backwardTraversalKeys.		    remove(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 						  InputEvent.SHIFT_MASK));	    } else {		forwardTraversalKeys.add(KeyStroke.					 getKeyStroke(KeyEvent.VK_TAB, 0));		backwardTraversalKeys.		    add(KeyStroke.			getKeyStroke(KeyEvent.VK_TAB, InputEvent.SHIFT_MASK));	    }            LookAndFeel.installProperty(editor,                                        "focusTraversalKeysForward",					 forwardTraversalKeys);            LookAndFeel.installProperty(editor,                                        "focusTraversalKeysBackward",					 backwardTraversalKeys);	}    }    /**     * Returns the <code>TransferHandler</code> that will be installed if     * their isn't one installed on the <code>JTextComponent</code>.     */    TransferHandler getTransferHandler() {        return defaultTransferHandler;    }    /**     * Fetch an action map to use.     */    ActionMap getActionMap() {	String mapName = getPropertyPrefix() + ".actionMap";	ActionMap map = (ActionMap)UIManager.get(mapName);	if (map == null) {	    map = createActionMap();	    if (map != null) {		UIManager.getLookAndFeelDefaults().put(mapName, map);	    }	}        ActionMap componentMap = new ActionMapUIResource();        componentMap.put("requestFocus", new FocusAction());	/* 	 * fix for bug 4515750 	 * JTextField & non-editable JTextArea bind return key - default btn not accessible	 *	 * Wrap the return action so that it is only enabled when the	 * component is editable. This allows the default button to be	 * processed when the text component has focus and isn't editable.	 * 	 */	if (getEditorKit(editor) instanceof DefaultEditorKit) {	    if (map != null) {		Object obj = map.get(DefaultEditorKit.insertBreakAction);		if (obj != null  		    && obj instanceof DefaultEditorKit.InsertBreakAction) {		    Action action =  new TextActionWrapper((TextAction)obj);		    componentMap.put(action.getValue(Action.NAME),action);		}	    }	}        if (map != null) {            componentMap.setParent(map);        }	return componentMap;    }    /**     * Create a default action map.  This is basically the     * set of actions found exported by the component.     */    ActionMap createActionMap() {	ActionMap map = new ActionMapUIResource();	Action[] actions = editor.getActions();	//System.out.println("building map for UI: " + getPropertyPrefix());	int n = actions.length;	for (int i = 0; i < n; i++) {	    Action a = actions[i];	    map.put(a.getValue(Action.NAME), a);	    //System.out.println("  " + a.getValue(Action.NAME));	}        map.put(TransferHandler.getCutAction().getValue(Action.NAME),                TransferHandler.getCutAction());        map.put(TransferHandler.getCopyAction().getValue(Action.NAME),                TransferHandler.getCopyAction());        map.put(TransferHandler.getPasteAction().getValue(Action.NAME),                TransferHandler.getPasteAction());	return map;    }    protected void uninstallKeyboardActions() {        editor.setKeymap(null);	SwingUtilities.replaceUIInputMap(editor, JComponent.					 WHEN_IN_FOCUSED_WINDOW, null);	SwingUtilities.replaceUIActionMap(editor, null);    }        /**     * Paints a background for the view.  This will only be     * called if isOpaque() on the associated component is     * true.  The default is to paint the background color      * of the component.     *     * @param g the graphics context     */    protected void paintBackground(Graphics g) {        g.setColor(editor.getBackground());        g.fillRect(0, 0, editor.getWidth(), editor.getHeight());    }    /**     * Fetches the text component associated with this     * UI implementation.  This will be null until     * the ui has been installed.     *     * @return the editor component     */    protected final JTextComponent getComponent() {        return editor;    }    /**     * Flags model changes.     * This is called whenever the model has changed.     * It is implemented to rebuild the view hierarchy     * to represent the default root element of the     * associated model.     */    protected void modelChanged() {        // create a view hierarchy        ViewFactory f = rootView.getViewFactory();        Document doc = editor.getDocument();        Element elem = doc.getDefaultRootElement();        setView(f.create(elem));    }    /**     * Sets the current root of the view hierarchy and calls invalidate().     * If there were any child components, they will be removed (i.e.     * there are assumed to have come from components embedded in views).     *     * @param v the root view     */    protected final void setView(View v) {        rootView.setView(v);        painted = false;        editor.revalidate();        editor.repaint();    }    /**     * Paints the interface safely with a guarantee that     * the model won't change from the view of this thread.       * This does the following things, rendering from      * back to front.     * <ol>     * <li>     * If the component is marked as opaque, the background     * is painted in the current background color of the     * component.     * <li>     * The highlights (if any) are painted.     * <li>     * The view hierarchy is painted.     * <li>     * The caret is painted.     * </ol>     *     * @param g the graphics context     */    protected void paintSafely(Graphics g) {	painted = true;	Highlighter highlighter = editor.getHighlighter();	Caret caret = editor.getCaret();		// paint the background	if (editor.isOpaque()) {	    paintBackground(g);	}		// paint the highlights	if (highlighter != null) {	    highlighter.paint(g);	}	// paint the view hierarchy	Rectangle alloc = getVisibleEditorRect();        if (alloc != null) {            rootView.paint(g, alloc);        }        	// paint the caret	if (caret != null) {	    caret.paint(g);	}    }    // --- ComponentUI methods --------------------------------------------    /**     * Installs the UI for a component.  This does the following     * things.     * <ol>     * <li>     * Set the associated component to opaque (can be changed     * easily by a subclass or on JTextComponent directly),     * which is the most common case.  This will cause the     * component's background color to be painted.     * <li>     * Install the default caret and highlighter into the      * associated component.     * <li>     * Attach to the editor and model.  If there is no      * model, a default one is created.     * <li>     * create the view factory and the view hierarchy used     * to represent the model.     * </ol>     *     * @param c the editor component     * @see ComponentUI#installUI     */    public void installUI(JComponent c) {        if (c instanceof JTextComponent) {            editor = (JTextComponent) c;            // install defaults            installDefaults();            installDefaults2();            // common case is background painted... this can            // easily be changed by subclasses or from outside            // of the component.            LookAndFeel.installProperty(editor, "opaque", Boolean.TRUE);            LookAndFeel.installProperty(editor, "autoscrolls", Boolean.TRUE);            // attach to the model and editor            editor.addPropertyChangeListener(updateHandler);            Document doc = editor.getDocument();            if (doc == null) {                // no model, create a default one.  This will                // fire a notification to the updateHandler                 // which takes care of the rest.                 editor.setDocument(getEditorKit(editor).createDefaultDocument());            } else {                doc.addDocumentListener(updateHandler);                modelChanged();            }            // install keymap            installListeners();            installKeyboardActions();	    LayoutManager oldLayout = editor.getLayout();	    if ((oldLayout == null) || (oldLayout instanceof UIResource)) {		// by default, use default LayoutManger implementation that		// will position the components associated with a View object.		editor.setLayout(updateHandler);	    }        } else {            throw new Error("TextUI needs JTextComponent");        }    }    /**     * Deinstalls the UI for a component.  This removes the listeners,     * uninstalls the highlighter, removes views, and nulls out the keymap.     *     * @param c the editor component     * @see ComponentUI#uninstallUI     */    public void uninstallUI(JComponent c) {        // detach from the model        editor.removePropertyChangeListener(updateHandler);        editor.getDocument().removeDocumentListener(updateHandler);        // view part        painted = false;        uninstallDefaults();        rootView.setView(null);        c.removeAll();	LayoutManager lm = c.getLayout();	if (lm instanceof UIResource) {	    c.setLayout(null);	}        // controller part        uninstallKeyboardActions();        uninstallListeners();        editor = null;    }    /**     * Superclass paints background in an uncontrollable way     * (i.e. one might want an image tiled into the background).     * To prevent this from happening twice, this method is     * reimplemented to simply paint.     * <p>     * <em>NOTE:</em> Superclass is also not thread-safe in      * it's rendering of the background, although that's not     * an issue with the default rendering.     */    public void update(Graphics g, JComponent c) {	paint(g, c);    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美另类在线| 亚洲一区二区三区精品在线| 欧美日韩亚洲综合在线| 91麻豆视频网站| 91玉足脚交白嫩脚丫在线播放| 成人免费av资源| 91视频你懂的| 日本高清免费不卡视频| 欧美日韩一区二区在线观看| 欧美精品一二三区| 日韩色在线观看| 久久精品一区蜜桃臀影院| 中文字幕乱码亚洲精品一区| 亚洲视频免费看| 日韩黄色在线观看| 国产一区视频网站| 91丨porny丨蝌蚪视频| 欧美日本一道本在线视频| 欧美一卡二卡三卡四卡| 国产婷婷色一区二区三区四区 | 一区二区三区在线视频观看58 | 青青草国产成人99久久| 紧缚捆绑精品一区二区| 成人激情小说网站| 欧美日韩在线播放一区| 久久久久久免费网| 亚洲自拍偷拍图区| 精久久久久久久久久久| 91视频在线看| 精品国内二区三区| 一区二区三区精品视频在线| 免费在线观看一区| 91美女蜜桃在线| 日韩一级片网站| 亚洲免费在线视频一区 二区| 丝袜诱惑制服诱惑色一区在线观看 | 国产白丝精品91爽爽久久| 99久久99久久免费精品蜜臀| 制服丝袜成人动漫| 中文字幕一区二区三区在线播放 | 亚洲午夜国产一区99re久久| 韩国v欧美v日本v亚洲v| 在线视频欧美区| 久久九九全国免费| 日韩成人一区二区| 91蜜桃网址入口| 久久精品无码一区二区三区| 视频一区视频二区中文字幕| 91在线观看美女| 国产婷婷色一区二区三区在线| 日韩va欧美va亚洲va久久| 99国产精品一区| 亚洲国产电影在线观看| 久久99精品一区二区三区三区| 欧洲av一区二区嗯嗯嗯啊| 中文字幕日韩一区| 国产精一区二区三区| 欧美在线一二三| 亚洲人成人一区二区在线观看| 国产乱子伦一区二区三区国色天香 | 国产精品色哟哟网站| 激情av综合网| 欧美哺乳videos| 蜜臀精品久久久久久蜜臀| 欧美视频一二三区| 亚洲国产视频a| 欧美怡红院视频| 一区二区三区在线免费| 日本韩国精品在线| 亚洲综合在线免费观看| 欧美在线free| 亚洲一卡二卡三卡四卡| 欧美日韩黄色一区二区| 亚洲国产精品嫩草影院| 欧美日韩久久久久久| 一区二区三区蜜桃网| 欧美三级视频在线观看| 婷婷激情综合网| 欧美一区二区久久| 久久er99精品| 国产午夜久久久久| 99久久亚洲一区二区三区青草 | 视频一区在线播放| 欧美一区二区三区在线看| 秋霞国产午夜精品免费视频| 91.com视频| 久久99精品国产91久久来源| 久久综合久久综合九色| 成人av在线一区二区三区| 18欧美乱大交hd1984| 欧美综合久久久| 日韩一区欧美二区| 久久久亚洲午夜电影| 91在线观看美女| 日韩激情av在线| 久久精品视频免费| 91国偷自产一区二区三区观看| 午夜精品久久久久| 日韩精品专区在线影院观看 | 一区二区三区在线不卡| 欧美日韩高清一区二区三区| 国产一区二区三区| 亚洲男同性视频| 欧美一级高清片| 成人免费高清在线| 日韩国产欧美在线观看| 国产精品污污网站在线观看| 欧美日本在线看| 成人高清免费观看| 日韩电影在线观看一区| 国产精品久久夜| 日韩欧美一区在线| 色综合中文字幕国产 | 琪琪久久久久日韩精品| 国产精品沙发午睡系列990531| 欧美午夜不卡视频| 国产不卡一区视频| 婷婷成人综合网| 亚洲视频精选在线| 精品国产髙清在线看国产毛片 | 麻豆91免费观看| 亚洲精品中文在线影院| 久久综合色播五月| 欧美精品xxxxbbbb| av一区二区三区黑人| 精品一区二区三区久久久| 亚洲午夜免费电影| 综合久久久久久久| 国产精品视频免费看| 亚洲精品一区二区在线观看| 欧美人伦禁忌dvd放荡欲情| 99国产精品国产精品毛片| 日本不卡一二三区黄网| 亚洲国产一区在线观看| 中文字幕亚洲成人| 国产欧美日韩精品在线| 精品第一国产综合精品aⅴ| 欧美午夜片在线看| 在线免费av一区| 色婷婷综合五月| 91黄色免费版| 欧洲亚洲精品在线| 欧美午夜精品一区二区三区| 一本一道波多野结衣一区二区| 成人av电影在线| 成人av网站免费| 99热精品国产| 日本道色综合久久| 日本高清无吗v一区| 在线看日韩精品电影| 色婷婷激情一区二区三区| 91美女在线看| 欧美天天综合网| 91精品免费观看| 欧美精品一区二区三区蜜桃视频 | 91香蕉视频在线| 99r精品视频| 色婷婷精品大视频在线蜜桃视频| 91丨porny丨中文| 欧美日韩一区二区三区视频 | 国产成a人无v码亚洲福利| 国产高清成人在线| 成人h精品动漫一区二区三区| 波多野结衣在线一区| 99精品视频在线免费观看| 色就色 综合激情| 欧美日韩高清不卡| 精品久久久久久久久久久久久久久 | 亚洲精品中文在线观看| 亚洲综合色自拍一区| 午夜精品免费在线观看| 免费av成人在线| 国产夫妻精品视频| 91福利精品视频| 日韩午夜在线观看视频| 亚洲国产高清在线观看视频| 亚洲精品国产一区二区三区四区在线 | 日本中文字幕一区二区视频| 国产在线看一区| 91污在线观看| 日韩欧美激情四射| 亚洲天堂中文字幕| 久久精品国产第一区二区三区| 国产99久久精品| 欧美日韩黄色一区二区| 国产日产欧美精品一区二区三区| 亚洲一区二区三区免费视频| 国产一区二区三区美女| 色成年激情久久综合| 国产亚洲一区二区三区在线观看 | 国产激情91久久精品导航 | 精品欧美久久久| 日韩一区中文字幕| 久久精品噜噜噜成人av农村| 99视频超级精品| 久久久久国产精品人| 午夜婷婷国产麻豆精品| 不卡欧美aaaaa| 久久综合一区二区| 亚洲成人av电影|