Button.java, [...]: Fixed formatting issues all over.
2005-02-21 Michael Koch <konqueror@gmx.de> * java/awt/Button.java, java/awt/Container.java, java/awt/Font.java, java/awt/Frame.java, java/text/CollationElementIterator.java, java/text/RuleBasedCollator.java, java/util/PropertyPermission.java: Fixed formatting issues all over. From-SVN: r95333
This commit is contained in:
committed by
Michael Koch
parent
40cd9e66fa
commit
32efd4cd48
@@ -96,7 +96,10 @@ private transient ActionListener action_listeners;
|
||||
protected class AccessibleAWTButton extends AccessibleAWTComponent
|
||||
implements AccessibleAction, AccessibleValue
|
||||
{
|
||||
protected AccessibleAWTButton() { }
|
||||
protected AccessibleAWTButton()
|
||||
{
|
||||
// Do nothing here.
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see javax.accessibility.AccessibleAction#getAccessibleActionCount()
|
||||
|
||||
@@ -1686,26 +1686,42 @@ public class Container extends Component
|
||||
|
||||
static class GfxPaintVisitor extends GfxVisitor
|
||||
{
|
||||
public void visit(Component c, Graphics gfx) { c.paint(gfx); }
|
||||
public static final GfxVisitor INSTANCE = new GfxPaintVisitor();
|
||||
|
||||
public void visit(Component c, Graphics gfx)
|
||||
{
|
||||
c.paint(gfx);
|
||||
}
|
||||
}
|
||||
|
||||
static class GfxPrintVisitor extends GfxVisitor
|
||||
{
|
||||
public void visit(Component c, Graphics gfx) { c.print(gfx); }
|
||||
public static final GfxVisitor INSTANCE = new GfxPrintVisitor();
|
||||
|
||||
public void visit(Component c, Graphics gfx)
|
||||
{
|
||||
c.print(gfx);
|
||||
}
|
||||
}
|
||||
|
||||
static class GfxPaintAllVisitor extends GfxVisitor
|
||||
{
|
||||
public void visit(Component c, Graphics gfx) { c.paintAll(gfx); }
|
||||
public static final GfxVisitor INSTANCE = new GfxPaintAllVisitor();
|
||||
|
||||
public void visit(Component c, Graphics gfx)
|
||||
{
|
||||
c.paintAll(gfx);
|
||||
}
|
||||
}
|
||||
|
||||
static class GfxPrintAllVisitor extends GfxVisitor
|
||||
{
|
||||
public void visit(Component c, Graphics gfx) { c.printAll(gfx); }
|
||||
public static final GfxVisitor INSTANCE = new GfxPrintAllVisitor();
|
||||
|
||||
public void visit(Component c, Graphics gfx)
|
||||
{
|
||||
c.printAll(gfx);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Font.java -- Font object
|
||||
Copyright (C) 1999, 2002, 2004 Free Software Foundation, Inc.
|
||||
Copyright (C) 1999, 2002, 2004, 2005 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
@@ -247,7 +247,10 @@ private static final long serialVersionUID = -4206021311591459213L;
|
||||
{
|
||||
tokenval = Integer.parseInt(token);
|
||||
}
|
||||
catch(NumberFormatException e) { ; }
|
||||
catch(NumberFormatException e)
|
||||
{
|
||||
// Ignored.
|
||||
}
|
||||
|
||||
if (tokenval != 0)
|
||||
size = tokenval;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Frame.java -- AWT toplevel window
|
||||
Copyright (C) 1999, 2000, 2002, 2004 Free Software Foundation, Inc.
|
||||
Copyright (C) 1999, 2000, 2002, 2004, 2005 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
@@ -403,10 +403,15 @@ remove(MenuComponent menu)
|
||||
/**
|
||||
* Notifies this frame that it should create its native peer.
|
||||
*/
|
||||
|
||||
private static void fireDummyEvent()
|
||||
{
|
||||
EventQueue.invokeLater(new Runnable() { public void run() { } });
|
||||
EventQueue.invokeLater(new Runnable()
|
||||
{
|
||||
public void run()
|
||||
{
|
||||
// Do nothing here.
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void
|
||||
|
||||
Reference in New Issue
Block a user