Is it possible to have a class in a class?
If so how is this done.
thanx.
or
class Outer
static class Inner
depending on whether you want to be able to create an object of type Inner without an object of type Outer. This does, the other doesn't
Similar Messages
-
Is it possible to have an Opaque Border
Is it possible to have a transparent border? I'm asking because I'm putting a component into one of Hans Mullers wizzzy MultiSplitPanes which in turn is opaque because It's used inside a TabbedPane (XP colours these with a white background gradient .i.e. not dialog grey).
The tree with scrollpane weren't quite centered so a slapped an empty border on it with insets to make it look square, but the border - even empty ones appear opaque when used inside a transparent component?! Anyone seen this before?
nb.I'd guess it would be possible to nest the scrollpane inside yet another transparent panel with a gridbag insets of (2,2,3,2).. but that seems even more of a pain just to shuffle up one pixel.
This should illustrate the problem, you shouldnt see any grey around the tree:
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import java.awt.*;
public class BorderShouldNotBeSeen {
public static void main(String[] args) {
JFrame frame = new JFrame();
JPanel panel = new JPanel();
frame.getContentPane().add(panel);
// make it really obvious, should see red right up to the darker scrollpane/tree border
frame.getContentPane().setBackground(Color.RED);
panel.setOpaque(false);
// just BorderFactory.createEmptyBorder() didnt cut it.. so then I used..
class MyBorder extends EmptyBorder {
public MyBorder(Insets insets) {
super(insets);
public boolean isBorderOpaque() {
// ..guess what it still looks opaque!
return false;
JScrollPane treePane = new JScrollPane(new JTree());
treePane.setBorder(BorderFactory.createCompoundBorder(
new MyBorder(new Insets(10, 10, 11, 10)), treePane.getBorder()));
panel.add(treePane);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setVisible(true);
}- RichardWow, yes that fixes it - obvious when you think about it, the borders were just increasing the insets on the component. Just didn't see it.. Thanks.
-
RE: DropLists in ArrayFields - is it possible to have adifferent sele
Richard;
Here you go....
newList : Array of ListElement = new;
{ add elements }
row : Integer = { get your row };
column : Integer = { get by name or just know the number }
// poof! Watch that down cast!
(DropList)(<arrayField>.BodyGrid.GetChildInCell(row,column)).SetElementList(
newList);
You can also change FieldWidget settings....
<arrayField>.BodyGrid.GetChildInCell(row,column).FillColor =
C_BLUE;
My array field doesn't scroll (lucky me!). See if the AfterFieldScrolled
event fires at the right time to recalculate the widget state. I haven't
played with it and I'm far from a Forte GUI guru, but I suspect that you are
altering the column template and the visible widget is separate from the
data. So as you scroll, the data would scroll but the new settings stay
put. That's not what I would want/need. The widget reflects something
about the data. When the data scrolls, so should the presentation
properties!
What may be needed is to somehow derive the presentation state settings
dynamically from the mapped data. So when the data scrolled, the dynamic
settings change on the new presentation row.
Let me know.....
Scott Irwin
-----Original Message-----
From: Richard Finegan [SMTP:[email protected]]
Sent: Monday, August 24, 1998 1:38 PM
To: 'Forte Users Mailing List'
Subject: DropLists in ArrayFields - is it possible to have a
different selection list per row?
I have a DropList in an ArrayField column. Is it possible to have a
different list of selections for each DropList in a different row?
(ex.
DropList #1 in row #1 can choose from a/b/c, whereas a DropList #2
in row
#2 can choose only from d/e/f, etc.) Technote 4996 seems to imply
that it
isn't possible, and everything I've tried so far has failed as well.
Any insight appreciated.
Richard Finegan
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>One way to do this is to get at the specific dropList widget in the
arrayField by calling the getChildInCell(Row,Column) method on
<..theArrayField..>.BodyGrid. This widget can then be assigned any
dropList you want. Depending on the uniqueness of the individual
dropLists, each data row specific dropList can be coded as an attribute
(array of ListElement) on the mapped class, which can then be assigned
to the dropList widget.
A code snippet to do this would be -
method refreshArray
begin
for displayRow in 1 to <myArrayField>.VisibleRows do
dataRow : integer = displayRow + <myArrayField>.TopRow - 1;
myDropListWidget : dropList =
dropList(<myArrayField>.BodyGrid.getChildInCell(displayRow,
<..columnNumOfDropList..>));
myDropListWidget.setElementList(myArrayField[dataRow].myElementList);
end for;
end method;
This method has be called only when the user scrolls the arrayField, as
in -
when <myArrayField>.AfterFieldScrolled do
refreshArray();
Hope this helps.
Prashant.
From: Richard Finegan[SMTP:[email protected]]
Reply To: Richard Finegan
Sent: Monday, August 24, 1998 11:38 AM
To: 'Forte Users Mailing List'
Subject: DropLists in ArrayFields - is it possible to have a
different selection list per row?
I have a DropList in an ArrayField column. Is it possible to have a
different list of selections for each DropList in a different row?
(ex.
DropList #1 in row #1 can choose from a/b/c, whereas a DropList #2 in
row
#2 can choose only from d/e/f, etc.) Technote 4996 seems to imply
that it
isn't possible, and everything I've tried so far has failed as well.
Any insight appreciated.
Richard Finegan
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/> -
Dynamic mapping: I have no Class. I want to get database columns into a map
I want to practice dynamic mapping.
I don't know the class in development time. I know the attributes only on runtime. Then I create the table, and want to practice OR Mapping to get and set data in this table while all I have is aa map of fields (Strings/int for direct-to-field mappings, Lists, Objects, etc.) - against this new table.
I have no Class. Neither source nor Class object in hand.
In Hibernate it is possible and very well documented. It's called "Dynamic Model". I have to get a special Hib session from a session i already have, and it starts to work with Maps and not real classes and objects.
Here is the command in Hib: sess.getSession(EntityMode.MAP);
Thanks in advance.
DoronDoron,
We have been working with dynamic models and byte code weaving for a while now. I took some work I did a few months back now and upgraded it to work with EclipseLink JPA. I have started creating an example within EclipseLink to both illustrate how EclipseLink can be extended to deliver this dynamic mapping and also to start consolidating our existing dynamic support in our SDO and DBWS components into a more general solution that be used out of the box with JPA.
I have started a wiki page to illustrate how this functionality can be used. Take a look and let me know if this might address your requirements.
http://wiki.eclipse.org/Eclipselink/Examples/JPA/Dynamic
Doug -
Is it possible to unload a class?
Suppose I take a classloader and load a class. Then I set my classloader to null and get rid of any objects of it that I've instantiated. Can that class be garbage collected?
I'm thinking that it probably isn't possible. Even if you can get rid of all references to the class, what if a thread is running a static method of that class? But then again I suppose the stack trace would then have a reference so it can't be garbage collected. Was also thinking about what if a thread is just about to call it, but I guess you could just pop a classNotFoundException. So maybe it is possible... Can anyone comment?Well... I'm pretty sure it's possible to unload a class since it's possible to replace them. My IDE (IntelliJ) is capable of recognizing a change in your class file (as a result of compilation while the program is running, for example) and inserting the new class into the application if you want. This is very handy for working on web applications wherein the server takes a while to reload the application.
So if you can reload the class, you can probably unload it, yes? -
Back posting only possible with same valuation class
Hii, I made changes in valuation class before that i closed all the open po and maintained stock zero using 201 mvt type on 31st March. Now the system is throwing error when Im doing the reversal using MB1A 202 mvt type like "Back posting only possible with same valuation class". But its taking if I take the Posting date to 1st April, and we want to post on the 31st MArch. Please provide the suggestion.
Thanks,
ManojSystem is behaving correctly..
Suppose you have changed the valuation class from X to Y as on 31.03.2014.
So your valuation class was X as on 31.03.2014.
But now your valuation class is changed as Y. and system will always try to post the valuation class Y for material.
So when you are trying to reverse the entry on 31.03.2014, system shows the error..
In that case, you should change the valuation class as on 30.03.2014 and you should do 201 movement type as on 30.03.2014, and then as on 31.03.2014, you can reverse the entry..
Now you have to reverse the 201 movement type after date 31.03.2014.
Regards
Dev -
Is it possible to have a program start with a splash screen?
Would it be possible to have a program show a splash screen while loading with Java's latest release 1.4.0 ?
If it is possible, could anybody explain me how.. and maybe show me a little example? :)
Thanks in advanceI just implemented this with one of my applications.
I wrote a class which extends JWindow and adds a JLabel icon to the contentPane.
The class containing the main method instantiates this class, makes the window visible, wait's some time and deletes the window:
Through the Dimension object I calculate the center of the screen
=> Splash screen
import javax.swing.*;
import java.awt.*;
class Splash extends JWindow
JPanel pane;
public Splash()
super();
setBounds(300, 225, 300, 200);
pane = new JPanel();
ImageIcon image = new ImageIcon("logo.jpg"); //Splash logo
Dimension dim = this.getToolkit().getScreenSize();
int height = (int) dim.getHeight() / 2;
int width = (int) dim.getWidth() / 2;
int iconheight = image.getIconHeight();
int iconwidth = image.getIconWidth(); // Center of Screen
int x = width - (iconwidth / 2);
int y = height - (iconheight / 2);
setLocation(x, y);
JLabel label = new JLabel(image);
pane.add(label);
setContentPane(pane);
pack();
=> "Main Method"
import util.*;
import app.*;
import java.awt.*;
import javax.swing.*;
public class Main
public static void main(String[] args)
Splash splash = new Splash();
splash.setVisible(true);
try
Thread.sleep(10000);
catch (InterruptedException e)
splash.setVisible(false);
splash = null; -
DropLists in ArrayFields - is it possible to have adifferent selection
I have a DropList in an ArrayField column. Is it possible to have a
different list of selections for each DropList in a different row? (ex.
DropList #1 in row #1 can choose from a/b/c, whereas a DropList #2 in row
#2 can choose only from d/e/f, etc.) Technote 4996 seems to imply that it
isn't possible, and everything I've tried so far has failed as well.
Any insight appreciated.
Richard Finegan
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>One way to do this is to get at the specific dropList widget in the
arrayField by calling the getChildInCell(Row,Column) method on
<..theArrayField..>.BodyGrid. This widget can then be assigned any
dropList you want. Depending on the uniqueness of the individual
dropLists, each data row specific dropList can be coded as an attribute
(array of ListElement) on the mapped class, which can then be assigned
to the dropList widget.
A code snippet to do this would be -
method refreshArray
begin
for displayRow in 1 to <myArrayField>.VisibleRows do
dataRow : integer = displayRow + <myArrayField>.TopRow - 1;
myDropListWidget : dropList =
dropList(<myArrayField>.BodyGrid.getChildInCell(displayRow,
<..columnNumOfDropList..>));
myDropListWidget.setElementList(myArrayField[dataRow].myElementList);
end for;
end method;
This method has be called only when the user scrolls the arrayField, as
in -
when <myArrayField>.AfterFieldScrolled do
refreshArray();
Hope this helps.
Prashant.
From: Richard Finegan[SMTP:[email protected]]
Reply To: Richard Finegan
Sent: Monday, August 24, 1998 11:38 AM
To: 'Forte Users Mailing List'
Subject: DropLists in ArrayFields - is it possible to have a
different selection list per row?
I have a DropList in an ArrayField column. Is it possible to have a
different list of selections for each DropList in a different row?
(ex.
DropList #1 in row #1 can choose from a/b/c, whereas a DropList #2 in
row
#2 can choose only from d/e/f, etc.) Technote 4996 seems to imply
that it
isn't possible, and everything I've tried so far has failed as well.
Any insight appreciated.
Richard Finegan
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/> -
Is it Possible to assign Valuation class without accounting view in MM
Hi all,
I have check my client system for materials having without accounting view while checking in table mbew for this material having valuation class.can anyelse say is it possible to assign valuation class without having accounting view.
Advance thanks,
rarajaHello ,
It is not possible to have a valuation class without accounting view.
There is some mistake that you are possibly making . pls check the same .Pls check if u r viewing the material master at the correct plant level .Also if you say that in MBEW valuation class exists , find out l the corresponding valuation level, the see the material master at the same level . You will definitely find the accounting view.
Regards
Anis -
Is it possible to have an icon in the column title of a chtmlb:configTable?
Hi all,
is it possible to have an icon (with tooltip) displayed in the column header as the title within a configTable (extension chtmlb)? I think I already know the answer but I want to try everything I can.
Within the configuration mode I think there is not possibility isn't it? But is there any kind of coding (maybe with columnDefinitions or something) to do it?
Thank you for your help.
Best regards.
BenHi Ben,
You can try enhancing the handler class of the BSP Element (configTable). There is a method in the class CL_CHTMLB_CONFIG_TABLE named IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS. Or create a new BSP Element based on a custom class similar to the standard one.
Regards.
Isaac Meléndez -
AS2: Can main movie itself have a class?
I know that it's possible to attach a class to a movieclip
symbol.
But how to attach a class to the main movie itself?
What I want is to create a movie called GUI that will be
loaded from a
separate movie called loader:
loader.swf is run by FPlayer and loads GUI.swf
How can I embed a class GUI for the movie GUI so that the
data of the class
GUI is compiled inside GUI.swf and not inside loader.swf?
Thank for your help
HenriThanks for your help.
?_lockroot?? Do you mean _root ?
"myIP" <[email protected]> a �crit
dans le message de
news:e9b3or$4ih$[email protected]..
> ?How can I embed a class GUI for the movie GUI so that
the data of the
class
> GUI is compiled inside GUI.swf and not inside
loader.swf??
>
> So I assume you understand that when GUI.swf is compiled
it will have
class
> GUI data in it. And you don?t want to have the symbol to
access class
GUI,
> correct? Then cant you created an instance of class GUI
on GUI?s timeline
like
> below?
>
> var myGUI:GUI = new GUI();
>
> If you have done that and still have problems with it
are you using
> ?_lockroot??
>
>
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.ht
> m?context=LiveDocs_Parts&file=00002482.html
>
> Or?are you thinking that you can compile another SWF
from the
FlashPlayer?
> This I believe can?t be done. FlashPlayer is not a
compiler.
>
> -
AS2 : can main movie have a class?
I know that it's possible to attach a class to a movieclip
symbol.
But how to attach a class to the main movie itself?
What I want is to create a movie called GUI that will be
loaded from a
separate movie called loader:
loader.swf is run by FPlayer and loads GUI.swf
How can I embed a class GUI for the movie GUI so that the
data of the class
GUI is compiled inside GUI.swf and not inside loader.swf?
Thank for your help
HenriThanks for your help.
?_lockroot?? Do you mean _root ?
"myIP" <[email protected]> a �crit
dans le message de
news:e9b3or$4ih$[email protected]..
> ?How can I embed a class GUI for the movie GUI so that
the data of the
class
> GUI is compiled inside GUI.swf and not inside
loader.swf??
>
> So I assume you understand that when GUI.swf is compiled
it will have
class
> GUI data in it. And you don?t want to have the symbol to
access class
GUI,
> correct? Then cant you created an instance of class GUI
on GUI?s timeline
like
> below?
>
> var myGUI:GUI = new GUI();
>
> If you have done that and still have problems with it
are you using
> ?_lockroot??
>
>
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.ht
> m?context=LiveDocs_Parts&file=00002482.html
>
> Or?are you thinking that you can compile another SWF
from the
FlashPlayer?
> This I believe can?t be done. FlashPlayer is not a
compiler.
>
> -
Why isn't possible to have ID attribute with a root tag
Hi ,
Why is it not possible to have a id associated with a Root tag ??
Thanks in advance.CustomClass.mxml
<Canvas id="i_got_a_root_tag_id" >
</Canvas>
Now remember , the id is declared when we declare the class right so even though we don't specify the id in the Application.mxml class , it is a property of the CustomClass.
Main.mxml
<Application>
<CustomClass />
<CustomClass />
<Script>
public function somethingFunction():void
i_got_a_root_tag_id.addEventListener(Do.SomethingEvent , handleEvent);
So in the previous example , which instance gets the listener added to it ? See how root id tags hurt everyone everywhere ?
If this post was helpful please mark it as such.
Sincerely ,
Ubu -
Possible to Have ToC Default to Show Only Top Level (collapse sublevels)?
Howdy!
I'll bet I'm not the only one wishing for this. Let's say you're using Captivate 4's Table of Contents feature with a longish movie of Cp slides, which is chunked into bite-size sections content-wise. In the ToC, though, you can't mimic that same organization scheme; at least, the learner would first need to collapse all the ToC folders you've created so they see only the top-level listing.
This can be a critical issue: keeping the at-first-glance list in the ToC brief enough to be inviting to learners, yet allowing learners to drive which details are currently visible.
A movie's topical hierarchy could be along these lines, for example ...
Section 1 - National Brands
What are National Brands?
Why Are They Important to Our Business?
Working with Nat. Brands
Practice Your Knowledge
Section 2 - International Brands
What are International Brands?
Why Are They Important to Our Business?
Working with Intl. Brands
Practice Your Knowledge
You'd like to organize the ToC to show only the section titles (1st level) and to suppress the 2nd-level detail (slide titles) until the learner chooses to expand the folder to see those details.
I've tried things like grouping the slides into sections in the Storyboard view and organizing the slides into sections strictly within the ToC -- both to no avail.
Has anyone solved for this need yet?
I'm all ears, and you'd be doing learners of the world a huge favor.
Thanks!Hi, Jim.
Thanks for being 'on the case' and looking into this so quickly. Your
findings are encouraging, although my user base is generally working with
IE 6 and FP8 or 9.
Since the only thing I may influence is getting IT to help push out FP10,
I'm hoping it's more of a player- than a browser-version issue.
I'll test things out by Monday and let you know the results. Wish me luck!
Dave
From: Jim Leichliter <[email protected]>
To: Dave Tressler <[email protected]>
Date: 03/26/2010 06:02 PM
Subject: Possible to Have ToC Default to Show Only Top Level (collapse
sublevels)?
Dave,
I just tested this on my local web server and it worked fine. I created a
blank project with 8 slides. Created my TOC with grouping... 2 slides in
each group. I turned on self paced learning. I tried with and without the
widget and it picked up where I left off in either case. See
https://docs.google.com/leaf?id=0B86WuEq6SVwRNWIwMjhjODctMjE2Yy00MWE2LWI5YzEtMGQxYzNjOWQ0Z mI2&hl=en.
I published using FP10 and IE8 to view. Notice any difference between
your project and this one?
Thanks,
Jim Leichliter -
Okay, so this may be kind of a weird question. We have some users who are wanting to add a page to an already existing xml document and correct me if I'm wrong, but I've read that it's not possible to add/delete pages from a pdf that's in xml format. Since that is not possible, I have added the page to the xml document as an attachment. Now what I am wanting to know is if it is possible to have the attachment print out at the same time as the main document. We are using the latest version of Adobe Reader and I have access to Adobe Acrobat Standard 9 & 10 and then I have access to Adobe Acrobat Pro 7. I've been unable to find anyting via google or by searching this forum so hopefully I'll draw out some kind of smart cookies and we'll get this figured out. I appreciate any and all input!
Thanks,I know of no way to do this with Reader or XML.
Maybe you are looking for
-
how can i change accounts to make it like completely empty for her?
-
How to get a list of users in cms that have viewed a report?
Hello. Is there a query that I can use in Query Builder to find out the users that have viewed a report - or a set of reports, and how many times those users have viewed the report(s) within the past year or so? Thanks Joel
-
Field Short Text and long Text not displayed in SKA1 in Se17
When try to extract chart of account data from SAP using Tcode se17 and table ska1. Short text and G/L acc long text are not displayed where as these are displayed when we use t code se16 and table ska1. My client want to use specifically se17 for ex
-
What are you listening to [no genre]
we come from different musical tastesdoesn't have to the best but WHAT IS IN YOUR EARS RIGHT NOWdon't cheat-there is no wrong and the song that started this thoughtspotify:track:2sFwP3sgdxvJrGtE5YWGGT
-
Safari has frozen. And it won't let me restart! What to do?
Safari froze (i.e. it won't let me do anything on the page but the window will still move around on the screen if I click on it). I tried to close it. When I did a notification popped up that says are you sure becuase multiple windows are up, per t