rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
setDisplayedMnemonic((int) Character.toUpperCase(mnemonic)); | if (displayedMnemonic != mnemonic) { firePropertyChange("displayedMnemonic", displayedMnemonic, mnemonic); displayedMnemonic = mnemonic; if (text != null) setDisplayedMnemonicIndex(text.toUpperCase().indexOf(mnemonic)); } | public void setDisplayedMnemonic(char mnemonic) { setDisplayedMnemonic((int) Character.toUpperCase(mnemonic)); } |
public JSlider(int orientation, int minimum, int maximum, int value) | public JSlider() | public JSlider(int orientation, int minimum, int maximum, int value) { sliderModel = new DefaultBoundedRangeModel(value, 0, minimum, maximum); if (orientation != HORIZONTAL && orientation != VERTICAL) throw new IllegalArgumentException(orientation + " is not a legal orientation"); this.orientation = or... |
sliderModel = new DefaultBoundedRangeModel(value, 0, minimum, maximum); if (orientation != HORIZONTAL && orientation != VERTICAL) throw new IllegalArgumentException(orientation + " is not a legal orientation"); this.orientation = orientation; changeListener = createChangeListener(); sliderModel.addChangeListener(change... | this(HORIZONTAL, 0, 100, 50); | public JSlider(int orientation, int minimum, int maximum, int value) { sliderModel = new DefaultBoundedRangeModel(value, 0, minimum, maximum); if (orientation != HORIZONTAL && orientation != VERTICAL) throw new IllegalArgumentException(orientation + " is not a legal orientation"); this.orientation = or... |
return entry != null ? (ZipEntry) entry.clone() : null; | if (entry == null && !name.endsWith("/")) entry = (ZipEntry) entries.get(name + '/'); return entry != null ? new ZipEntry(entry, name) : null; | public ZipEntry getEntry(String name) { try { HashMap entries = getEntries(); ZipEntry entry = (ZipEntry) entries.get(name); return entry != null ? (ZipEntry) entry.clone() : null; } catch (IOException ioe) { return null; } } |
private void checkMethods() throws IntrospectionException { if(!addListenerMethod.getDeclaringClass().isAssignableFrom(removeListenerMethod.getDeclaringClass()) && !removeListenerMethod.getDeclaringClass().isAssignableFrom(addListenerMethod.getDeclaringClass())) { throw new IntrospectionException("add and remove listen... | private void checkMethods() throws IntrospectionException { if (!addListenerMethod.getDeclaringClass() .isAssignableFrom(removeListenerMethod.getDeclaringClass()) && !removeListenerMethod.getDeclaringClass() .isAssignableFrom(addListenerMethod.getDeclaringClass())) { throw new IntrospectionException( "add and remove li... | private void checkMethods() throws IntrospectionException { if(!addListenerMethod.getDeclaringClass().isAssignableFrom(removeListenerMethod.getDeclaringClass()) && !removeListenerMethod.getDeclaringClass().isAssignableFrom(addListenerMethod.getDeclaringClass())) { throw new IntrospectionException("add and remov... |
if(this.addListenerMethod == null || !this.addListenerMethod.getReturnType().equals(java.lang.Void.TYPE)) { throw new IntrospectionException("Add listener method does not exist, is not public, or is not void."); } | if (this.addListenerMethod == null || !this.addListenerMethod.getReturnType().equals(java.lang.Void.TYPE)) { throw new IntrospectionException( "Add listener method does not exist, is not public," + " or is not void."); } | private void findMethods(Class eventSourceClass, Class listenerType, String listenerMethodNames[], String addListenerMethodName, String removeListenerMethodName, String absurdEventClassCheckName) throws IntrospectionException { /* Find add listener method and remove listener method. */ Class[] listenerArgList =... |
try { this.removeListenerMethod = eventSourceClass.getMethod(removeListenerMethodName,listenerArgList); } catch(SecurityException E) { throw new IntrospectionException("SecurityException trying to access method " + removeListenerMethodName + "."); } catch(NoSuchMethodException E) { throw new IntrospectionException("Cou... | try { this.removeListenerMethod = eventSourceClass.getMethod(removeListenerMethodName, listenerArgList); } catch (SecurityException E) { throw new IntrospectionException( "SecurityException trying to access method " + removeListenerMethodName + "."); } catch (NoSuchMethodException E) { throw new IntrospectionException(... | private void findMethods(Class eventSourceClass, Class listenerType, String listenerMethodNames[], String addListenerMethodName, String removeListenerMethodName, String absurdEventClassCheckName) throws IntrospectionException { /* Find add listener method and remove listener method. */ Class[] listenerArgList =... |
protected final Class defineClass(String name, byte[] data, int offset, int length) { return defineClass(name, data, offset, length, null); | protected final Class defineClass(byte[] data, int offset, int length) { return defineClass(null, data, offset, length, null); | protected final Class defineClass(String name, byte[] data, int offset, int length) { return defineClass(name, data, offset, length, null); } |
if (text != null) { | if (bufferedKeys != null) { | public void sendKeys(String text) {// if (text == null) {// return;// } if (isStatusErrorCode() && !resetRequired) { resetError(); if (!cursorActive) setCursorOn(); } if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]"... |
throw new BAD_OPERATION("ServiceContext[] expected."); | BAD_OPERATION bad = new BAD_OPERATION("ServiceContext[] expected"); bad.minor = Minor.Any; bad.initCause(ex); throw bad; | public static ServiceContext[] extract(Any any) { try { ServiceContextListHolder holder = (ServiceContextListHolder) any.extract_Streamable(); return holder.value; } catch (ClassCastException ex) { throw new BAD_OPERATION("ServiceContext[] expected."); } } |
this(0, 100, HORIZONTAL); | this(HORIZONTAL, 0, 100); | public JProgressBar() { this(0, 100, HORIZONTAL); } |
public final synchronized void draw(Shape shape, AffineTransform tx, Color color, int mode) { | public final synchronized void draw(Shape shape, Shape clip, AffineTransform tx, Color color, int mode) { | public final synchronized void draw(Shape shape, AffineTransform tx, Color color, int mode) { syncFIFO(); super.draw(shape, tx, color, mode); final Rectangle r = getBounds(shape, tx); updateScreen(r.x - 1, r.y - 1, r.width + 2, r.height + 2); } |
super.draw(shape, tx, color, mode); | super.draw(shape, clip, tx, color, mode); | public final synchronized void draw(Shape shape, AffineTransform tx, Color color, int mode) { syncFIFO(); super.draw(shape, tx, color, mode); final Rectangle r = getBounds(shape, tx); updateScreen(r.x - 1, r.y - 1, r.width + 2, r.height + 2); } |
public final synchronized void fill(Shape shape, AffineTransform tx, Color color, int mode) { | public final synchronized void fill(Shape shape, Shape clip, AffineTransform tx, Color color, int mode) { | public final synchronized void fill(Shape shape, AffineTransform tx, Color color, int mode) { syncFIFO(); super.fill(shape, tx, color, mode); final Rectangle b = getBounds(shape, tx); updateScreen(b.x, b.y, b.width, b.height); } |
super.fill(shape, tx, color, mode); | super.fill(shape, clip, tx, color, mode); | public final synchronized void fill(Shape shape, AffineTransform tx, Color color, int mode) { syncFIFO(); super.fill(shape, tx, color, mode); final Rectangle b = getBounds(shape, tx); updateScreen(b.x, b.y, b.width, b.height); } |
revalidate(); repaint(); | setOpaque(b); | public void setContentAreaFilled(boolean b) { if (contentAreaFilled == b) return; boolean old = contentAreaFilled; contentAreaFilled = b; firePropertyChange(CONTENT_AREA_FILLED_CHANGED_PROPERTY, old, b); revalidate(); repaint(); } |
output.write_wstring(value [ i ]); | output.write_string(value [ i ]); | public static void write(OutputStream output, String[] value) { output.write_long(value.length); for (int i = 0; i < value.length; i++) output.write_wstring(value [ i ]); } |
public StringSeqHolder(String[] initial_value) | public StringSeqHolder() | public StringSeqHolder(String[] initial_value) { value = initial_value; typecode.setLength(value.length); } |
value = initial_value; typecode.setLength(value.length); | public StringSeqHolder(String[] initial_value) { value = initial_value; typecode.setLength(value.length); } | |
goto_XY(icX,icY); | if (!isStatusErrorCode()) { goto_XY(icX,icY); } | public void setPendingInsert(boolean flag, int icX, int icY) { pendingInsert = flag; if (pendingInsert) { homePos = getPos(icX,icY); } goto_XY(icX,icY); } |
return alignmentX; | float ret = alignmentX; if (alignmentX < 0) ret = super.getAlignmentX(); return ret; | public float getAlignmentX() { return alignmentX; } |
return alignmentY; | float ret = alignmentY; if (alignmentY < 0) ret = super.getAlignmentY(); return ret; | public float getAlignmentY() { return alignmentY; } |
if (a < 0.0F) alignmentX = 0.0F; else if (a > 1.0) alignmentX = 1.0F; else | public void setAlignmentX(float a) { alignmentX = a; } | |
if (a < 0.0F) alignmentY = 0.0F; else if (a > 1.0) alignmentY = 1.0F; else | public void setAlignmentY(float a) { alignmentY = a; } | |
maximumSize = max; | maximumSize = new Dimension(max); | public void setMaximumSize(Dimension max) { Dimension oldMaximumSize = maximumSize; maximumSize = max; firePropertyChange("maximumSize", oldMaximumSize, maximumSize); } |
minimumSize = min; | minimumSize = new Dimension(min); | public void setMinimumSize(Dimension min) { Dimension oldMinimumSize = minimumSize; minimumSize = min; firePropertyChange("minimumSize", oldMinimumSize, minimumSize); } |
preferredSize = pref; | preferredSize = new Dimension(pref); | public void setPreferredSize(Dimension pref) { Dimension oldPreferredSize = preferredSize; preferredSize = pref; firePropertyChange("preferredSize", oldPreferredSize, preferredSize); } |
aliasesEP.addListener(this); | public DefaultAliasManager(ExtensionPoint aliasesEP) { this.parent = null; this.aliasesEP = aliasesEP; refreshAliases(); } | |
System.out.println("Refreshing alias list"); | protected void refreshAliases() { if (aliasesEP != null) { aliases.clear(); final Extension[] extensions = aliasesEP.getExtensions(); for (int i = 0; i < extensions.length; i++) { final Extension ext = extensions[i]; final ConfigurationElement[] elements = ext.getConfigurationElements(); for (int j = 0... | |
childAllocation(i, copy); | public void paint(Graphics g, Shape a) { // Adjust size if the size is changed. Rectangle bounds = a.getBounds(); if (bounds.width != getWidth() || bounds.height != getHeight()) setSize(bounds.width, bounds.height); Rectangle inside = getInsideAllocation(a); Rectangle copy = new Rectangle(inside)... | |
childAllocation(index, alloc); | protected void paintChild(Graphics g, Rectangle alloc, int index) { View child = getView(index); childAllocation(index, alloc); child.paint(g, alloc); } | |
if (mods) | if (mods) { | public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("DONE")) { if (mods) mapper.saveKeyMap(); setVisible(false); } if (e.getActionCommand().equals("MAP")) { mapIt(); } if (e.getActionCommand().equals("REMOVE")) { removeIt();... |
mapper.fireKeyChangeEvent(); } | public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("DONE")) { if (mods) mapper.saveKeyMap(); setVisible(false); } if (e.getActionCommand().equals("MAP")) { mapIt(); } if (e.getActionCommand().equals("REMOVE")) { removeIt();... | |
mods = true; | private void removeIt() { if (!macros && !special) { mapper.removeKeyStroke(mnemonicData[functions.getSelectedIndex()]); strokeDesc.setText(mapper.getKeyStrokeDesc( mnemonicData[functions.getSelectedIndex()])); } else { if (macros) { mapper.... | |
mapper.fireKeyChangeEvent(); | private void setNewKeyStrokes(KeyEvent ke) { if (!macros && !special) { if (isLinux) mapper.setKeyStroke(mnemonicData[functions.getSelectedIndex()],ke,isAltGr); else mapper.setKeyStroke(mnemonicData[functions.getSelectedIndex()],ke); strokeDesc.setText(mapper.getKey... | |
public static void main(String[] args) { | public static void main(String[] args) throws SyntaxErrorException { | public static void main(String[] args) { try { ParsedArguments cmdLine = HELP_INFO.parse(args); String device = ARG_DEVICE.getValue(cmdLine); String FSType = FS.getValue(cmdLine).intern(); String fsTypeName; Object params; int fatSize = 0; ... |
public AssignQuad(int address, IRBasicBlock block, int lhsIndex) { | public AssignQuad(int address, IRBasicBlock block, Variable lhs) { | public AssignQuad(int address, IRBasicBlock block, int lhsIndex) { super(address, block); this.variables = block.getVariables(); this.lhsIndex = lhsIndex; this.lhs = (Variable) variables[lhsIndex].clone(); lhs.setAssignQuad(this); } |
this.variables = block.getVariables(); this.lhsIndex = lhsIndex; this.lhs = (Variable) variables[lhsIndex].clone(); | this.lhs = lhs; | public AssignQuad(int address, IRBasicBlock block, int lhsIndex) { super(address, block); this.variables = block.getVariables(); this.lhsIndex = lhsIndex; this.lhs = (Variable) variables[lhsIndex].clone(); lhs.setAssignQuad(this); } |
public Parser(String programName, final String versionString, boolean longOnly) | public Parser(String programName, String versionString) | public Parser(String programName, final String versionString, boolean longOnly) { this.programName = programName; this.longOnly = longOnly; // Put standard options in their own section near the end. OptionGroup finalGroup = new OptionGroup(Messages.getString("Parser.StdOptions")); //$NON-NLS-1$ finalG... |
this.programName = programName; this.longOnly = longOnly; OptionGroup finalGroup = new OptionGroup(Messages.getString("Parser.StdOptions")); finalGroup.add(new Option("help", Messages.getString("Parser.PrintHelp")) { public void parsed(String argument) throws OptionException { printHelp(System.out); System.exit(0); }... | this(programName, versionString, false); | public Parser(String programName, final String versionString, boolean longOnly) { this.programName = programName; this.longOnly = longOnly; // Put standard options in their own section near the end. OptionGroup finalGroup = new OptionGroup(Messages.getString("Parser.StdOptions")); //$NON-NLS-1$ finalG... |
throws NotImplementedException | public void addAccessibleSelection(int i) throws NotImplementedException { // TODO: Implement this properly. } | |
setSelectedIndex(i); | public void addAccessibleSelection(int i) throws NotImplementedException { // TODO: Implement this properly. } | |
throws NotImplementedException | public void clearAccessibleSelection() throws NotImplementedException { // TODO: Implement this properly. } | |
throws NotImplementedException | public Accessible getAccessibleAt(Point p) throws NotImplementedException { return null; } | |
return null; | int tabIndex = indexAtLocation(p.x, p.y); if (tabIndex >= 0) return getAccessibleChild(tabIndex); else return getAccessibleSelection(0); | public Accessible getAccessibleAt(Point p) throws NotImplementedException { return null; } |
throws NotImplementedException | public int getAccessibleChildrenCount() throws NotImplementedException { return 0; } | |
return 0; | return getTabCount(); | public int getAccessibleChildrenCount() throws NotImplementedException { return 0; } |
throws NotImplementedException | public AccessibleRole getAccessibleRole() throws NotImplementedException { return null; } | |
return null; | return AccessibleRole.PAGE_TAB_LIST; | public AccessibleRole getAccessibleRole() throws NotImplementedException { return null; } |
throws NotImplementedException | public AccessibleSelection getAccessibleSelection() throws NotImplementedException { return null; } | |
return null; | return this; | public AccessibleSelection getAccessibleSelection() throws NotImplementedException { return null; } |
throws NotImplementedException | public int getAccessibleSelectionCount() throws NotImplementedException { return 0; } | |
return 0; | return 1; | public int getAccessibleSelectionCount() throws NotImplementedException { return 0; } |
throws NotImplementedException | public boolean isAccessibleChildSelected(int i) throws NotImplementedException { return false; } | |
return false; | return i == getSelectedIndex(); | public boolean isAccessibleChildSelected(int i) throws NotImplementedException { return false; } |
throws NotImplementedException | public void removeAccessibleSelection(int i) throws NotImplementedException { // TODO: Implement this properly. } | |
throws NotImplementedException | public void selectAllAccessibleSelection() throws NotImplementedException { // TODO: Implement this properly. } | |
throws NotImplementedException | public void stateChanged(ChangeEvent e) throws NotImplementedException { // Implement this properly. } | |
Object source = e.getSource(); firePropertyChange(AccessibleContext.ACCESSIBLE_SELECTION_PROPERTY, null, source); | public void stateChanged(ChangeEvent e) throws NotImplementedException { // Implement this properly. } | |
throws NotImplementedException | public int getAccessibleIndexInParent() throws NotImplementedException { // FIXME: Implement this properly. return 0; } | |
return 0; | return indexOfTab(title); | public int getAccessibleIndexInParent() throws NotImplementedException { // FIXME: Implement this properly. return 0; } |
throws NotImplementedException | public AccessibleStateSet getAccessibleStateSet() throws NotImplementedException { // FIXME: Implement this properly. return null; } | |
return null; | AccessibleContext parentCtx = JTabbedPane.this.getAccessibleContext(); AccessibleStateSet state = parentCtx.getAccessibleStateSet(); state.add(AccessibleState.SELECTABLE); if (component == getSelectedComponent()) state.add(AccessibleState.SELECTED); return state; | public AccessibleStateSet getAccessibleStateSet() throws NotImplementedException { // FIXME: Implement this properly. return null; } |
accessibleContext = new AccessibleJTabbedPane(); | { AccessibleJTabbedPane ctx = new AccessibleJTabbedPane(); addChangeListener(ctx); accessibleContext = ctx; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJTabbedPane(); return accessibleContext; } |
return "JTabbedPane"; | StringBuffer sb = new StringBuffer(super.paramString()); sb.append(",tabPlacement="); if (tabPlacement == TOP) sb.append("TOP"); if (tabPlacement == BOTTOM) sb.append("BOTTOM"); if (tabPlacement == LEFT) sb.append("LEFT"); if (tabPlacement == RIGHT) sb.append("RIGHT"); return sb.toString(); | protected String paramString() { return "JTabbedPane"; } |
String mc = System.getProperty("http.maxConnections"); maxConnections = (mc != null && mc.length() > 0) ? Math.max(Integer.parseInt(mc), 1) : 5; | public Object run() { proxyHostname = System.getProperty("http.proxyHost"); if (proxyHostname != null && proxyHostname.length() > 0) { String port = System.getProperty("http.proxyPort"); if (port != null && port.length() > 0) { proxyPort = Integer.parseI... | |
Object key = HTTPConnection.getPoolKey(host, port, secure); synchronized (connectionPool) { connection = (HTTPConnection) connectionPool.remove(key); if (connection == null) { connection = new HTTPConnection(host, port, secure); connection.setPool(connectionPool); } } | connection = HTTPConnection.Pool.instance.get(host, port, secure); | HTTPConnection getConnection(String host, int port, boolean secure) throws IOException { HTTPConnection connection; if (keepAlive) { Object key = HTTPConnection.getPoolKey(host, port, secure); synchronized (connectionPool) { connection = (HTTPConnection) connectionPool... |
return offset; | return offset != pos ? offset : -1; | protected int layoutRow(FlowView fv, int rowIndex, int pos) { View row = fv.getView(rowIndex); int axis = fv.getFlowAxis(); int span = fv.getFlowSpan(rowIndex); int x = fv.getFlowStart(rowIndex); int offset = pos; View logicalView = getLogicalView(fv); // Special case when span... |
LogicalView(Element el) { super(el); children = new Vector(); | LogicalView(Element el, int axis) { super(el, axis); | LogicalView(Element el) { super(el); children = new Vector(); } |
layoutPool = new LogicalView(getElement()); | layoutPool = new LogicalView(getElement(), getAxis()); | protected void loadChildren(ViewFactory vf) { if (layoutPool == null) { layoutPool = new LogicalView(getElement()); layoutPool.setParent(this); Element el = getElement(); int count = el.getElementCount(); for (int i = 0; i < count; ++i) { Element childEl... |
Element el = getElement(); int count = el.getElementCount(); for (int i = 0; i < count; ++i) { Element childEl = el.getElement(i); View childView = vf.create(childEl); layoutPool.append(childView); } | protected void loadChildren(ViewFactory vf) { if (layoutPool == null) { layoutPool = new LogicalView(getElement()); layoutPool.setParent(this); Element el = getElement(); int count = el.getElementCount(); for (int i = 0; i < count; ++i) { Element childEl... | |
checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field"); | DerUtil.checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field"); | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyI... |
checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field"); | DerUtil.checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field"); | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyI... |
checkIsConstructed(derAlgorithmID, "Wrong subjectPublicKey field"); | DerUtil.checkIsConstructed(derAlgorithmID, "Wrong subjectPublicKey field"); | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyI... |
checkIsBigInteger(val, "Wrong modulus field"); | DerUtil.checkIsBigInteger(val, "Wrong modulus field"); | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyI... |
checkIsBigInteger(val, "Wrong publicExponent field"); | DerUtil.checkIsBigInteger(val, "Wrong publicExponent field"); | public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyI... |
final int size = os.getMode().getSize(); | final Label label = genLabel("$$class-init"); | public final boolean writeClassInitialize(VmMethod method) { // Only for static methods (non <clinit>) if (method.isStatic() && !method.isInitializer()) { // Only when class is not initialize final VmType< ? > cls = method.getDeclaringClass(); if (!cls.isInitialized())... |
final int typeOfs = getSharedStaticsOffset(method .getDeclaringClass()); os.writeMOV(size, aax, STATICS, typeOfs); os.writeTEST(BITS32, aax, entryPoints.getVmTypeState() .getOffset(), VmTypeState.ST_INITIALIZED); final Label afterInit = new Label(method.getMangledName() + "$$after-classinit"); os.writeJCC(afterInit, X... | writeGetStaticsEntry(label, aax, cls); writeClassInitialize(label, aax, cls); | public final boolean writeClassInitialize(VmMethod method) { // Only for static methods (non <clinit>) if (method.isStatic() && !method.isInitializer()) { // Only when class is not initialize final VmType< ? > cls = method.getDeclaringClass(); if (!cls.isInitialized())... |
os.writeXOR(dst, dst); | Vm.getVm().getCounter("### load " + dst.getName()).inc(); | public final void writeLoadIsolatedStatics(Label curInstrLabel, String labelPrefix, GPR dst) { final int offset = entryPoints.getVmProcessorIsolatedStaticsTable() .getOffset(); if (os.isCode32()) { os.writeXOR(dst, dst); os.writePrefix(X86Constants.FS_PR... |
os.writeMOV(INTSIZE, dst, dst, offset); | os.writeMOV(dst, offset); | public final void writeLoadIsolatedStatics(Label curInstrLabel, String labelPrefix, GPR dst) { final int offset = entryPoints.getVmProcessorIsolatedStaticsTable() .getOffset(); if (os.isCode32()) { os.writeXOR(dst, dst); os.writePrefix(X86Constants.FS_PR... |
list.requestFocusInWindow(); | public void mousePressed(MouseEvent event) { // TODO: What should be done here, if anything? } | |
InputMapUIResource parentInputMap = new InputMapUIResource(); ActionMap parentActionMap = new ActionMapUIResource(); action = new ListAction(); Object keys[] = focusInputMap.allKeys(); for (int i = 0; i < keys.length; i++) | SwingUtilities.replaceUIInputMap(list, JComponent.WHEN_FOCUSED, focusInputMap); ActionMap am = (ActionMap) UIManager.get("List.actionMap"); if (am == null) | protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap parentActionMap = new ActionMapUIResource(); action = ne... |
KeyStroke stroke = (KeyStroke) keys[i]; String actionString = (String) focusInputMap.get(stroke); parentInputMap.put(KeyStroke.getKeyStroke(stroke.getKeyCode(), stroke.getModifiers()), actionString); | am = new ActionMapUIResource(); ListAction action; action = new ListAction("selectPreviousRow"); am.put("selectPreviousRow", action); action = new ListAction("selectNextRow"); am.put("selectNextRow", action); action = new ListAction("selectPreviousRowExtendSelection"); am.put("selectPreviousRowExtendSelection", action)... | protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap parentActionMap = new ActionMapUIResource(); action = ne... |
parentActionMap.put(actionString, new ActionListenerProxy(action, actionString)); | action = new ListAction("selectPreviousColumn"); am.put("selectPreviousColumn", action); action = new ListAction("selectNextColumn"); am.put("selectNextColumn", action); action = new ListAction("selectPreviousColumnExtendSelection"); am.put("selectPreviousColumnExtendSelection", action); action = new ListAction("select... | protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap parentActionMap = new ActionMapUIResource(); action = ne... |
parentInputMap.setParent(list.getInputMap().getParent()); parentActionMap.setParent(list.getActionMap().getParent()); list.getInputMap().setParent(parentInputMap); list.getActionMap().setParent(parentActionMap); | SwingUtilities.replaceUIActionMap(list, am); | protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap parentActionMap = new ActionMapUIResource(); action = ne... |
0, isSel, hasFocus); | row, isSel, hasFocus); | protected void paintCell(Graphics g, int row, Rectangle bounds, ListCellRenderer rend, ListModel data, ListSelectionModel sel, int lead) { boolean isSel = list.isSelectedIndex(row); boolean hasFocus = (list.getLeadSelectionIndex() == row) && BasicListUI.this.list.hasFocus(); ... |
InputMap im = SwingUtilities.getUIInputMap(list, JComponent.WHEN_FOCUSED); if (im instanceof UIResource) SwingUtilities.replaceUIInputMap(list, JComponent.WHEN_FOCUSED, null); if (SwingUtilities.getUIActionMap(list) instanceof UIResource) SwingUtilities.replaceUIActionMap(list, null); | protected void uninstallKeyboardActions() throws NotImplementedException { // TODO: Implement this properly. } | |
if (vector.size() >= 10) { | if (vector.size() >= 20) { | public Object get() throws InterruptedException { synchronized (lock) { // wait until there is something to read while (isEmpty()) lock.wait(); // just something here to try. if (vector.size() >= 10) { vector.remove(0); vector.remove(0); ... |
vector.remove(0); vector.remove(0); vector.remove(0); vector.remove(0); vector.remove(0); vector.remove(0); vector.remove(0); vector.remove(0); vector.remove(0); | public Object get() throws InterruptedException { synchronized (lock) { // wait until there is something to read while (isEmpty()) lock.wait(); // just something here to try. if (vector.size() >= 10) { vector.remove(0); vector.remove(0); ... | |
return new AccessibleStateSet(); | AccessibleStateSet state = new AccessibleStateSet(); Rectangle visibleRect = getVisibleRect(); Rectangle cellRect = getCellRect(row, column, false); if (visibleRect.intersects(cellRect)) state.add(AccessibleState.SHOWING); if (isCellSelected(row, column)) state.add(AccessibleState.SELECTED); if (row == getSelecte... | public AccessibleStateSet getAccessibleStateSet() { // TODO: What state shoiuld be returned here? return new AccessibleStateSet(); } |
getCellEditor().addCellEditorListener(this); | lastSelectedRow = getSelectedRow(); lastSelectedColumn = getSelectedColumn(); TableCellEditor editor = getCellEditor(); if (editor != null) editor.addCellEditorListener(this); | protected AccessibleJTable() { getModel().addTableModelListener(this); getSelectionModel().addListSelectionListener(this); getColumnModel().addColumnModelListener(this); getCellEditor().addCellEditorListener(this); } |
int r = getAccessibleRowAtIndex(i); int c = getAccessibleColumnAtIndex(i); changeSelection(r, c, true, false); | public void addAccessibleSelection(int i) { // TODO Auto-generated method stub } | |
clearSelection(); | public void clearAccessibleSelection() { // TODO Auto-generated method stub } | |
firePropertyChange(AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY, null, null); handleColumnChange(AccessibleTableModelChange.INSERT, event.getFromIndex(), event.getToIndex()); | public void columnAdded(TableColumnModelEvent event) { // TODO Auto-generated method stub } | |
firePropertyChange(AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY, null, null); | public void columnMarginChanged(ChangeEvent event) { // TODO Auto-generated method stub } | |
firePropertyChange(AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY, null, null); handleColumnChange(AccessibleTableModelChange.DELETE, event.getFromIndex(), event.getFromIndex()); handleColumnChange(AccessibleTableModelChange.INSERT, event.getFromIndex(), event.getToIndex()); | public void columnMoved(TableColumnModelEvent event) { // TODO Auto-generated method stub } | |
firePropertyChange(AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY, null, null); handleColumnChange(AccessibleTableModelChange.DELETE, event.getFromIndex(), event.getToIndex()); | public void columnRemoved(TableColumnModelEvent event) { // TODO Auto-generated method stub } | |
firePropertyChange(AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY, null, null); | public void editingStopped(ChangeEvent event) { // TODO Auto-generated method stub } | |
return null; | return getAccessibleChild(r * getAccessibleColumnCount() + c); | public Accessible getAccessibleAt(int r, int c) { // TODO Auto-generated method stub return null; } |
return null; | return caption; | public Accessible getAccessibleCaption() { // TODO Auto-generated method stub return null; } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.