PC-UI: F4 with multiple object selection
Hi!
I implemented a F4-application with multiple object selection.
Now I want to give back some data to the application that called the f4 or I'd like to call a method of this class. How can I find the correct instance of this class?
Thanks in advance!
Jörn
Hi!
I used a DDIC table to exchange data. I forwarded the object_key and the F4-help application inserted the multiple objects with that key in that table.
The application which called the F4-help looked to the table (after pressing a button), grabbed the data and deleted the data in the DDIC table afterwards.
I hope that helps.
Jörn
Similar Messages
-
Hi,
Is it possible can we have a List with multiple Object (CustomerVO, OrderVO and AddressVO) in a single List? If so how we will define the generics for that List?
Please clarify.
Thanks.797836 wrote:
Guys, am I correct? Please clarify.If it works, it is correct. So try it.
I was more thinking along the line of this though according to what you described in your initial post:
Class ParentVO{
private CustomerVO customer;
private OrderVO order;
private AddressVO address;
// with getters and setters
}That way you don't need any list at all, if you only want to have access to these three objects. Just slap them in a ParentVO and use that.
Looking at it again I wonder if the ParentVO is needed even, there is a strong relationship between these three objects. An order has a customer and a customer has an address / an order has a billing/shipping address... -
Spiral/Vortex with Multiple Objects
Hi, all
I'm trying to replicate this image from Shutterstock with multiple objects to create this spiral vortex.
http://image.shutterstock.com/display_pic_with_logo/849265/101051014/stock-vector-card-sui t-hearts-diamonds-spades-and-clubs-playing-cards-op-art-vector-illustration-101051014.jpg
I looked up tutorials like this: http://vectorguru.com/tutorials/how-to-distribute-objects-along-spiral.html
Where I can put say the hearts on one spiral.
But, the image seems to be multiple spirals in a uniform and equidistant manner. I would like to know how to go about making a "vortex" with multiple objects very similar if not the same to this fashion.
Please advise.
Thanks!Hi lotrismylife,
I was able to get a similar effect using the following steps:
Create a pattern brush of the 4 symbols next to each other (that way you can distribute them easily around the circle).
Start with the outermost circle, and apply the new pattern brush to it's stroke.
Expand the circle
Object > Transform > Transform Each (CTRL + ALT + SHIFT + D)
Set the horizontal & vertical scale to be smaller than 100% (you must experiment with this, depending on how big the gaps between circles must be)
Set the rotation angle (depending on how much each circle must rotate)
Click on Copy
Now continually press CTRL D - this will continue to create a copy of the outermost circle that is x % smaller, and x degrees rotated.
End result: -
I saw a tutorial by Mordy Golding which said you could select multiple objects w/different CMYK color values and change just one value without changing the others. I can not do this. Does anyone know what Im doing wrong? When I make a multiple selection and try to change just one of the values in a CMYK breakdown-all of the objects change to the same color. Thanx for any clarification on this.
There are 2 boxes with drop shadows here. The top one has a 75%opacity, the bottom a 25% drop shadow. According to the tutorial you should be able to select one and then go to Select->Same->Appearance Attribute and change the other to the same opacity.
-
Greetings,
I've been experiencing a strange issue when I have multiple objects in a single document.
From time to time, Pages deletes an image and then replaces it with a duplicate of another image in the document. The first image disappears, and I end up with two instances of the second image.
The event seems to occur when I close and save. The problem is intermittent. However, I have been able to reproduce it while scrutinizing my design process to make sure that I'm not responsible for the error. I am very sure that this is a software issue.
I usually work in Word Processing mode, with tiff images inserted as floating objects in a two column format.
Has anyone else had this problem? Any ideas about how to fix it?
Thanks!Christopher
The immediate problem I can see is that several of your images have exactly the same name:
image1.png
How have you distinguished these on import and kept them apart in Finder?
I think this is a case of User Error, where you have mixed up identically named files.
To correct this, gather up all your images and rename them to, preferably, what they are.
There is however a problem in OSX. It tenaciously hangs onto the original file's name to track it even after you move it.
So open each file in turn in Preview, make a very slight edit like a small crop and rename it.
I suggest using 2 naming conventions:
Example: 01.03 xxxxx.png
Where that is page 01 image 03 and xxxxxx = the psalm name.
This way you can easily differentiate the images and place them in order in the file.
Peter -
Custom scrolller - issue with multiple objects....
Hi,
I'm developing a very simple custom scroller as a proof of concept. The idea is to have a background image(content_mc), lay multiple objects(myContent[i]) on top of the image, and scroll them all as a cohesive unit. However, I can not scroll myContent[i] appropriately; each object has a unique position and when I try to scroll them, they all assume one position(in which everything overlaps), move to that position and then scroll(see the ### comment below). Does anyone know how to accomplish this?(or does any of this not make the slightest bit of sense?)
Thx for any help,
Chipleh
var rect:Rectangle;var scrollerMinY:Number = scrollbar_mc.scroller_mc.y;
var contentMaxY:Number = content_mc.y;
var padding:Number = 40;
scrollbar_mc.scroller_mc.buttonMode = true;
scrollbar_mc.scroller_mc.addEventListener(MouseEvent.MOUSE_DOWN, dragIt);
function dragIt(e:MouseEvent):void {
rect = new Rectangle(4, 3, 0, 180);
scrollbar_mc.scroller_mc.startDrag(false, rect);
stage.addEventListener(MouseEvent.MOUSE_UP, dropIt);
scrollbar_mc.scroller_mc.addEventListener(Event.ENTER_FRAME, scrollIt);
function dropIt(e:MouseEvent):void {
scrollbar_mc.scroller_mc.stopDrag();
scrollbar_mc.scroller_mc.removeEventListener(Event.ENTER_FRAME, scrollIt);
function scrollIt(e:Event):void
var scrollerRange:Number = rect.height;
var contentRange:Number = content_mc.height - mask_mc.height + padding;
var percentage:Number = (scrollbar_mc.scroller_mc.y - scrollerMinY) / scrollerRange;
var targetY:Number = contentMaxY - percentage * contentRange;
content_mc.y = targetY;
//###Herein lies the problem; I can not get multiple clips to align consistently like content_mc
for(var i:int = 0;i<myContentArray.length;i++)
var myContent:Object = MovieClip(root).getChildByName(myContentArray[i]);
myContent.y = targetY - myContent.y;Hiyas moccamaximum,
Thx for the reply. Below are the screenshots, where the "align consistently" issue is apparent. When I instantiate the objects, the objects align per the "Before scrolling" screenshot. As soon as I start to scroll, the objects all align to one position(targetY)i.e.: "After scrolling" screenshot. I understand why that is happening, what i don't understand is how to maintain the layout of the objects while scrolling, per:
for(var i:int = 0;i<myContentArray.length;i++)
var myContent:Object = MovieClip(root).getChildByName(myContentArray[i]);
myContent.y = targetY;
Before scrolling:
During scrolling: -
Help req : alv grid with multiple row selection
Hi all sap gurus,
i have a alv list display program , in which i can select the o/p rows(multiple rows)
and perform some actiom based on some icons .
now i have to convert this in to grid display
this is initial code i.e for list
DATA : BEGIN OF itab OCCURS 0.
INCLUDE STRUCTURE ztest.
DATA : checkbox type c.
DATA : END OF itab.
s_layout-box_fieldname = 'CHECKBOX'.
ty_events-name = slis_ev_top_of_page.
ty_events-form = 'TOP_OF_PAGE'.
APPEND ty_events TO it_events.
ALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = v_repid
i_internal_tabname = 'ITAB'
i_inclname = v_repid
CHANGING
ct_fieldcat = build_fieldcatalog.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BUFFER_ACTIVE = ' '
i_callback_program = v_repid
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
i_structure_name = 'ITAB'
is_layout = s_layout
it_fieldcat = build_fieldcatalog[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
it_events = it_events
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
FORM user_command USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
IF ucomm = 'DELE'.
LOOP AT iTAB WHERE CHECKbox = 'X' .
ENDLOOP.
MODIFY ztEST FROM TABLE itAB.
ENDIF.
selfield-refresh = 'X'.
ENDFORM.
NOW I HAVE A LIST O/P WHERE I CAN SELECT THE BOX AND CLICK DELETE ICON.
NOW I WANT TO CHANGE TO GRID, SO I KEPT EVERYTHING SAMRE AND I CHANGED " LIST" TO "GRID"
NOW TWO THINGS HAPPEND
1) I SEE A EMPTY COLUMN IN THE O/P , I GUESS THATS BECAUSE CHECKBOSX IN INTERNAL TABLE , SO I REMOVED IT
SO THIS MADE ME TO REMOVE
IF ucomm = 'DELE'.
LOOP AT iTAB." WHERE CHECKbox = 'X' .------PROBLEM
ENDLOOP.
MODIFY ztEST FROM TABLE itAB.
ENDIF.
selfield-refresh = 'X'.
NOW I DON'T SEE THE EMPTY COLUMN , BUT NOW PROBLEM IS I CANNNOT DISTINGUISH AS TO WHICH IS SELECTED AND AT ANY POINT OF TIME I CANSELECT ONLY ROW.
ALL I WANT IS
1) I WANT TO SELECT MULTIPLE ROWS AND SHOULD BE ABLE TO KNOW WHICH ROWS WERE SELECTED IN THE O/P SCREEN.
IN THE LIST DISPLAY I HAD CHECKBOX = 'X' FOR ALL THE ROWS THAT WERE SELECTED , I WANT THE SIMILAR THING in grid display
LET ME KNOW whether this can be done without USING 00 LANG.
thanksHi Swati,
Below code might help full for you. Description: is It selects multiple rows from ALV and display it on the next ALV.
*************************Reward Point If help full********************************************
*& Report z7cc_alv_oops_show_next_alv *
*& DEVELOPERS NAME : CHIDANAND CHAUHAN
*& DATE: SATURDAY 08-07-2006
*& DESCRIPTION: TO CREATE AN OBJECT ORIENTED ALV
REPORT z7cc_alv_oops_show_next_alv MESSAGE-ID z5hs .
DATA : BEGIN OF it_mara OCCURS 0,
mark TYPE flag,
matnr TYPE matnr,
mtart TYPE mtart,
meins TYPE meins,
END OF it_mara.
DATA : BEGIN OF it_mara1 OCCURS 0,
* mark type flag,
matnr TYPE matnr,
mtart TYPE mtart,
meins TYPE meins,
END OF it_mara1.
DATA : BEGIN OF it_mara2 OCCURS 0,
* mark type flag,
matnr TYPE matnr,
mtart TYPE mtart,
meins TYPE meins,
END OF it_mara2.
DATA : t_fieldcat TYPE lvc_t_fcat,
t_fieldcat1 TYPE lvc_t_fcat,
s_fieldcat LIKE LINE OF t_fieldcat.
DATA : s_layout TYPE lvc_s_layo.
DATA : control TYPE REF TO cl_gui_custom_container,
grid TYPE REF TO cl_gui_alv_grid.
DATA: BEGIN OF wa ,
mark TYPE flag,
matnr TYPE matnr,
mtart TYPE mtart,
meins TYPE meins,
END OF wa.
* CLASS lcl_events_box DEFINITION
CLASS lcl_events_box DEFINITION.
PUBLIC SECTION.
METHODS :
*Handler_Data_Changed for event Data_Changed of cl_gui_alv_grid
*imporTing er_data_changed,
handler_user_command FOR EVENT user_command OF cl_gui_alv_grid
IMPORTING e_ucomm,
handler_toolbar FOR EVENT toolbar OF cl_gui_alv_grid
IMPORTING e_object e_interactive.
ENDCLASS. "lcl_events_box DEFINITION
* CLASS lcl_events_box IMPLEMENTATION
CLASS lcl_events_box IMPLEMENTATION.
* method to handle the user command.
METHOD handler_user_command.
PERFORM form_usercommand CHANGING e_ucomm.
ENDMETHOD. "Handler_user_command
*& Mehod to handle the toolbar.
METHOD handler_toolbar.
PERFORM form_toolbar CHANGING e_object e_interactive
e_object->mt_toolbar.
ENDMETHOD. "Handler_ToolBar
ENDCLASS. "lcl_events_box IMPLEMENTATION
START-OF-SELECTION.
DATA : w_events TYPE REF TO lcl_events_box.
SELECT matnr mtart meins FROM mara INTO CORRESPONDING FIELDS OF TABLE
it_mara.
CALL SCREEN 100.
*& Module pbo_module OUTPUT
* text
MODULE pbo_module OUTPUT.
IF grid IS INITIAL.
CREATE OBJECT control
EXPORTING
container_name = 'CUST_CTRL'.
CREATE OBJECT grid
EXPORTING
i_parent = control.
PERFORM build_catalog.
PERFORM build_catalog1.
PERFORM build_layout.
CALL METHOD grid->set_table_for_first_display
EXPORTING
is_layout = s_layout
CHANGING
it_outtab = it_mara[]
it_fieldcatalog = t_fieldcat.
CREATE OBJECT w_events.
SET HANDLER : w_events->handler_toolbar FOR grid,
w_events->handler_user_command FOR grid.
CALL METHOD grid->set_toolbar_interactive.
ELSE.
CALL METHOD grid->refresh_table_display.
ENDIF.
ENDMODULE. " pbo_module OUTPUT
*& Form BUILD_CATALOG
FORM build_catalog .
s_fieldcat-col_pos = '1'.
s_fieldcat-fieldname = 'MARK'.
s_fieldcat-checkbox = 'X'.
s_fieldcat-edit = 'X'.
APPEND s_fieldcat TO t_fieldcat.
CLEAR s_fieldcat.
s_fieldcat-col_pos = '2'.
s_fieldcat-fieldname = 'MATNR'.
s_fieldcat-scrtext_m = 'MATERIAL'.
APPEND s_fieldcat TO t_fieldcat.
s_fieldcat-col_pos = '3'.
s_fieldcat-fieldname = 'MTART'.
s_fieldcat-scrtext_m = 'MATERL TYPE'.
APPEND s_fieldcat TO t_fieldcat.
s_fieldcat-col_pos = '4'.
s_fieldcat-fieldname = 'MEINS'.
s_fieldcat-scrtext_m = 'UOM'.
APPEND s_fieldcat TO t_fieldcat.
ENDFORM. " BUILD_CATALOG
*& Form BUILD_LAYOUT
* text
* --> p1 text
* <-- p2 text
FORM build_layout .
s_layout-zebra = 'X'.
* S_LAYOUT-CWIDTH_OPT = 'X'.
s_layout-grid_title = 'Material Details'.
ENDFORM. "BUILD_LAYOUT
" BUILD_LAYOUT////////////////////////////////////
" USER_COMMAND_0100 INPUT
*& Form FORM_USERCOMMAND
* text
* <--P_E_UCOMM text
FORM form_usercommand CHANGING p_e_ucomm.
CASE p_e_ucomm.
WHEN 'INT1'.
DO.
READ TABLE it_mara INDEX sy-index TRANSPORTING mark matnr.
IF sy-subrc <> 0.
EXIT.
ENDIF.
IF it_mara-mark = 'X'.
READ TABLE it_mara INTO wa TRANSPORTING matnr mtart meins .
MOVE-CORRESPONDING wa TO it_mara1.
READ TABLE it_mara1 TRANSPORTING matnr mtart meins .
MOVE-CORRESPONDING it_mara1 TO it_mara2.
APPEND it_mara2.
CALL METHOD grid->set_table_for_first_display
EXPORTING
is_layout = s_layout
CHANGING
it_outtab = it_mara2[]
it_fieldcatalog = t_fieldcat1.
* SET PARAMETER ID 'MAT' FIELD IT_MARA-MATNR.
* CALL TRANSACTION 'MM02'.
ENDIF.
* ENDIF.
ENDDO.
ENDCASE.
ENDFORM. " FORM_USERCOMMAND
*& Form FORM_TOOLBAR
* text
* <--P_E_OBJECT text
* <--P_E_INTERACTIVE text
* <--P_E_OBJECT_>MT_TOOLBAR text
FORM form_toolbar CHANGING p_e_object TYPE REF TO
cl_alv_event_toolbar_set
p_e_interactive
mt_toolbar TYPE ttb_button.
DATA wal_button TYPE stb_button.
*WAL_BUTTON-ICON = ICON_status_reverse.
wal_button-text = 'GO'.
wal_button-quickinfo = 'PROCEED'.
wal_button-function = 'INT1'.
wal_button-butn_type = 0.
wal_button-disabled = space.
INSERT wal_button INTO p_e_object->mt_toolbar INDEX 1.
ENDFORM. " FORM_TOOLBAR
*& Module PF-STATUS OUTPUT
* text
MODULE pf-status OUTPUT.
SET PF-STATUS 'Z7CCSTAT'.
ENDMODULE. " PF-STATUS OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE user_command_0100 INPUT.
CASE sy-ucomm.
WHEN 'BACK'.
LEAVE PROGRAM.
WHEN 'CANCEL'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Form BUILD_CATALOG1
* text
* --> p1 text
* <-- p2 text
FORM build_catalog1 .
s_fieldcat-col_pos = '1'.
s_fieldcat-fieldname = 'MATNR'.
s_fieldcat-scrtext_m = 'MATERIAL'.
APPEND s_fieldcat TO t_fieldcat1.
s_fieldcat-col_pos = '2'.
s_fieldcat-fieldname = 'MTART'.
s_fieldcat-scrtext_m = 'MATERL TYPE'.
APPEND s_fieldcat TO t_fieldcat1.
s_fieldcat-col_pos = '3'.
s_fieldcat-fieldname = 'MEINS'.
s_fieldcat-scrtext_m = 'UOM'.
APPEND s_fieldcat TO t_fieldcat1.
ENDFORM. " BUILD_CATALOG1 -
E71 - Problem with multiple recipients selection i...
I can see and mark all contacts on my contact list while in "To" when creating a new text message. However the "OK" button is missing on the left lower corner of the screen while "Back", on the right, is active. I can type in recipients, though this is tedious when I need to select multiple recipients.
Further probing brought up another problem - I can see all my contacts on my phone but cannot find the contact folder nor can I backup my contacts.
Please help ASAP. Thanks & Regards,
CocoabeanWhen I add contacts to a blank SMS on my E73, I see a list of people with tick boxes to the left, and OK and Back options at the bottom. I don't need to select anything to make OK and Back selectable. If OK is missing for you, then I'm afraid you found a firmware bug. You could try fixing it with a hard reset or by reflashing the firmware. As a workaround, you can probably shift-select multiple contacts within the Contacts app, then choose Options -> Create Message.
cocoabean wrote:
Further probing brought up another problem - I can see all my contacts on my phone but cannot find the contact folder nor can I backup my contacts.
The actual contacts file(s) are stored somewhere in C:\Private and not meant to be accessed. (Private is read-only and usually not viewable at all.) How are you doing the backup? There are several different ways. I typically just use Ovi Suite. -
Access list with multiple object groups
Hello Everyone,
I am using a cisco ASA 5525 with 8.6 code. I am trying to setup access list for oubound access meaning hosts accessing the internet. I have created an access list called outbound_access and did "access-groupc outbound_access in interface inside "
I am trying to use object-groups where ever i can. Here is an example.
object-group service obj_Meraki_outbound
service-object tcp destination eq 443
service-object tcp destination eq 80
service-object tcp destination eq 7734
service-object tcp destination eq 7752
service-object udp destination eq 7351
object-group network obj_Meraki_lan
network-object 10.2.11.0 255.255.255.240
network-object 10.5.11.0 255.255.225.240
object-group network obj_Meraki_pub
des This group lists all hosts associated with Meraki.
network-object host 64.156.192.154
network-object host 64.62.142.12
network-object host 64.62.142.2
network-object host 74.50.51.16
network-object host 74.50.56.218
object-group service obj_Meraki_outbound
service-object tcp destination eq 443
service-object tcp destination eq 80
service-object tcp destination eq 7734
service-object tcp destination eq 7752
service-object udp destination eq 7351
object-group network obj_Meraki_lan
network-object 10.x.x.x 255.255.255.240
network-object 10.x.x.x 255.255.225.240
object-group network obj_Meraki_pub
des This group lists all hosts associated with Meraki.
network-object host 64.156.192.154
network-object host 64.62.142.12
network-object host 64.62.142.2
network-object host 74.50.51.16
network-object host 74.50.56.218
I have tried tying all these groups together in multiple ways but cannot figure out how to do this. This what i think it should be "access-list outbound_access extended permit object-group obj_Meraki_outbound object-group obj_Meraki_lan object-group obj_Meraki_pub"
What i want is the use the service objects and the source network would be obj_Meraki_lan and destination would be obj_Meraki_pub. It seems the rules completely change when you use object groups. Can someone explain this maybe with a few examples. I am already using object groups in many acls but not for every element.
ThanksHi,
Seems to work on my test ASA
Attached it to my current LAN interface.
ASA(config)# packet-tracer input LAN tcp 10.2.11.1 12345 64.156.192.154 80
Phase: 1
Type: ROUTE-LOOKUP
Subtype: input
Result: ALLOW
Config:
Additional Information:
in 0.0.0.0 0.0.0.0 WAN
Phase: 2
Type: ACCESS-LIST
Subtype: log
Result: ALLOW
Config:
access-group outbound_access in interface LAN
access-list outbound_access extended permit object-group obj_Meraki_outbound object-group obj_Meraki_lan object-group obj_Meraki_pub
object-group service obj_Meraki_outbound
service-object tcp destination eq https
service-object tcp destination eq www
service-object tcp destination eq 7734
service-object tcp destination eq 7752
service-object udp destination eq 7351
object-group network obj_Meraki_lan
network-object 10.2.11.0 255.255.255.240
network-object 10.5.11.0 255.255.255.240
object-group network obj_Meraki_pub
description: This group lists all hosts associated with Meraki.
network-object host 64.156.192.154
network-object host 64.62.142.12
network-object host 64.62.142.2
network-object host 74.50.51.16
network-object host 74.50.56.218
Additional Information:
access-list outbound_access line 1 extended permit tcp 10.2.11.0 255.255.255.240 host 64.156.192.154 eq www (hitcnt=1) 0x4d812691
Also have used such configuration in some special cases where the customer has insisted on allow specific TCP/UDP ports between multiple networks. And nothing is stopping from adding ICMP into the "object-group service" also.
- Jouni -
Flash Masks with multiple objects
hey i was wondering if anyone knows whats with flash and
masking an item to multiple graphics within a graphic
IE i have a bunch of squares. they are each individual
graphic objects. there are about 40 of these squares in another
graphic called squareContainer
im trying to mask a bitmap across squareContainer but when i
do it it will only mask against one of the 40 or so squares - how
do i get it to mask against all?
-CarlI would also like to do this, any ideas?
-
FileDialog with multiple files select
Hi,
I'm new to java programming.
I would like to write a script that brings a filddialog window with ability select multiple files.
I tried awt FileDialog, I could able to select only a single file.
Any code sample would be much appreciated.
Thanks.I am not sure it is possible in AWT FileDialog.
But If you use Swing's JFileChooser, It is certainly possible. -
JList with Multiple interval Selection
I am trying to get all the selections that I selected when
a button is pressed. I just don't under how it works when the selection is not contiguous. if it was I just need the first and last selected but I don't know what to do with this situtation
Duke dollars avaiableIf your JList allows multiple sections then this:
1.select first item
2. hold sown the shift key
3. select Nth item
will select all the items between the first and the Nth.
Holding down the Ctrl key will select individual items.
To make your JList accept multiple selections you use setSelectionMode -
List with multiple objects using Comparator
Hi,
I have a comparator to sort the fields of 2 objects. I have a resultlist which contains the CustomerAddressVO which contains the properties of both
Customer and Address entities List resultList<CustomerAddressVO>.
This CustomerAddressVO.java in turn have
private long id
private Customer customer;
private Address address;
Where Customer.java
will have properties of customer
Where Address.java
will have properties of address
Now i need to use the comparator for customer.getName() asc and address.id() desc, as i have mentioned the resultList doesn't directly contain this object as it contains CustomerAddressVO which in turn have those two object Customer and Address. Hence unless you iterate the list and retrieve the respective objects (customer, address) you cannot do the sorting through comparator. In such case how we can go about it. If you iterate the list also how we can pass the respective object to the compare() ? And more importantly we need to sort the columns of 2 different entites? Please clarify how we can go about it?
Thanks.You can still do the sorting through a Comparator
The compare method should take
public int compare(CustomerAddressVO o1, CustomerAddressVO o2) { //..so you can then do
01.getCustomer().getName();
//and
o1.getAddress().getId() together with relevant null checks -
AS3 Masking with multiple objects bug
Hi again.
I have simplified my script to tell more about the problem.
I'm creating Sprite which holds other Sprites with graphics. The whole Sprite is used to mask MovieClip.
When I don't apply it as a mask, it shows, that objects are rendered correctly. But when I add it as a mask, flash fails to draw a mask where those Sprite objects overlap each other. You can see an example here:
With no masking applied: http://imageshack.us/photo/my-images/29/screenshot20110914at432.png/
With masking applied: http://imageshack.us/photo/my-images/233/screenshot20110914at433.png/
As i've seen, this bug doesn't occur everytime mask overlaps.
What could be the problem?bump...
-
Trouble with multiple object animation
I'm new to Flash Basic 8, and am getting very frustrated
trying to make an animated gif to use as a background on my
website.
1. Do you really need to create a separate layer and motion
guide for each object? I wanted to have some 20 or so stars falling
along separate paths, maybe 2 or 3 per path, but it seems you can't
have more than one object per path, and only one path per layer.
2. It's okay if I have to create 20 regular layers and 20
motion guide layers, however, after 3 layers I noticed the gif
slows down on the website. I published the fla to an animated, loop
continuously gif. I then set the background of my asp.net website
to the gif. It starts out with the stars falling normally, but they
start slowing down half way down. By the time the last ones reach
the bottom they're barely moving at all. When the first ones begin
again at the top, they speed back up to normal and begin slowing
down again.
Any help greatly appreciated - or I'm not buying this
thing!LianaEnt;
There are a number of ways an animation such as you describe
could be
approached--some primarily scripted, some using tweening or
frame by frame
animation. It's difficult to be more specific without more
information. You
might take a look at some of the flash help sites such as
flashkit.com to
see if you can find something similar you can study. The more
things that
are moving onscreen simultaneously and the larger the pixel
size of the
animation --the more likely it is that the animation can slow
down both in
gif and swf format. Adding a small silent streaming sound to
your animation
can cause the flash player to drop animation frames to allow
the movie to
appear to run faster, but this will only help if the final
output is swf
(not gif) of course... -Tom Unger
Maybe you are looking for
-
Find flagged process orders for deletion
Hi all , How do i find flagged process orders for deletion ? i need report or t-code
-
So what's the deal w/AAC protected/unprotected files ?
I'm a long time user, and so I have been buying from iTunes store for years. I have been checking into my music files, and I see that many, probably more than 2GB, are "AAC protected" files in the info section..... I was just given a Sony mp3 walkman
-
BPM Task Configuration Assignees Update 'Advanced' tab?
Hello all We are operating in a Fusion SaaS environment (v11.1.9.2.0) and are trying to set escalations on the ReqApproval task. I understand that we have to check the 'Maximum for this assinee to complete the task' checkbox but when I go to this pag
-
Output from online file conversion is unreadable?
Have tried both .doc and .rtf outputs. Both are unintelligible. Anyone help?
-
How to know whether a material run heuristic in apo?
Hi Expert I want to know whethere a material run heuristic in a heuristic job. We do not need to run heuristic manually. Just like a material run mrp in R/3 system in mrp job. Which master data field in need to maintain in product in apo? Thank