Questions tagged [components]

A component in the Unified Modeling Language "represents a modular part of a system, that encapsulates its content and whose manifestation is replaceable within its environment. A component defines its behavior in terms of provided and required interfaces". The best example of component can be found in ActionScript- Flash,Flex sdks. There you have UI components like buttons, labels, DataGrids, charts those are reusable, distributable etc.

11658 questions
3
votes
1 answer

JSF 2 -- Save All Valid Component Values

I have a requirement to create a javascript function that when invoked will save all of the valid components on a JSF 2.0 form. Since the complete form will never be valid as a whole I need to figure out a way to run the lifecycle per component so…
Dave Maple
  • 8,102
  • 4
  • 45
  • 64
3
votes
2 answers

How do I pass a struct by reference in WinRT Component C++/CX

I have the following in my WinRT component: public value struct WinRTStruct { int x; int y; }; public ref class WinRTComponent sealed { public: WinRTComponent(); int TestPointerParam(WinRTStruct * wintRTStruct); }; int…
Ike Starnes
  • 68
  • 2
  • 5
3
votes
1 answer

delphi 7, installed component is hidden on installation

i am working on a component for delphi 7 and for quick installation without having to touch the IDE i am making a simple installer according to this SO answer by Marjan Venema. procedure TForm1.Button1Click(Sender: TObject); var …
PresleyDias
  • 3,657
  • 6
  • 36
  • 62
3
votes
4 answers

Removing items in a container

When I try to remove Components from a Container, I use this code. private static void clear(){ for (int i = con.getComponentCount() - 1; i >= 1; i--){ con.remove(i); } } When I call this function, the function acts as if it has…
KeirDavis
  • 665
  • 2
  • 10
  • 32
3
votes
2 answers

Hiding TcxEditButton for some rows in a TcxGrid

I have implemented a TcxGrid with some columns. The cells in the last column in this grid contains buttons of type TcxEditButton. The content of the grid is either entered by the user, or loaded from a textfile upon creating it's parent form. I…
Øystein
  • 1,163
  • 1
  • 12
  • 23
3
votes
2 answers

Objective-C and component programming

I am trying to implement the concept of component programming while writing my iOS game. In the book "Component Software: Beyond Object-Oriented Programming" by Clemens Szyperski, he mentions a tactic: (not quote) Start with a Duck class, which adds…
C-A
  • 699
  • 1
  • 6
  • 11
2
votes
3 answers

How to handle multiple similar projects with jira

I have multiple but similar client-side iPhone apps, managed as branches in git (all they cloned and periodically merged with master branch). So time to time there's global fixes/improvements that should be done in master. I'm migrating to jira to…
M.Y.
  • 1,105
  • 1
  • 11
  • 30
2
votes
1 answer

How to set the components of a Jira sub-task using the script listener plug-in?

I am using the the Jira plugin, groovyrunner, which has several built in scripts. One of which is a script listener which runs a built-in script when a certain project fires a specific event. In this case, the script is 'Create a sub-task'. You can…
elusive
  • 460
  • 5
  • 24
2
votes
1 answer

Swing and WebEditorKit - Showing my browser in a SwingFrame

I've been working on a small project recently, and I seem to of confused myself and hit a huge mental block. I know this should be simple which is why this is annoying me so much, but as the title suggests I have 3 classes: main - This should…
RyanSoper
  • 221
  • 3
  • 4
  • 16
2
votes
2 answers

Programmatically using components in OSGi

In my application, using services by themselves is pretty useless. You always need some external configuration information for a service to be usable. Components coupled with ConfigurationAdmin makes sense, since then for each configuration I…
Zoltán
  • 121
  • 10
2
votes
3 answers

Can a Visual Studio component designer access and modify the project .config file?

Can a component designer access and modify the app.config or web.config file of a project at design time? More specifically, is there some hosting service exposed by VS to do this 'the proper way' ? I know I can locate the .config file myself, open…
Remus Rusanu
  • 288,378
  • 40
  • 442
  • 569
2
votes
1 answer

A JS component for HTML discussions a-la Google Docs

I'm looking for a JavaScript component that would support discussions for my read-only HTML documents, a-la what modern Google Documents do. User selects a random portion of web-page, presses a hotkey / button on the page, and a comment floating…
Alexander Gladysh
  • 39,865
  • 32
  • 103
  • 160
2
votes
3 answers

get components of color in objective-c

Here is a code snippets for get RGB components of color. What can I do if the _countComponents is less than four, for example two? I tried to get components of color gray [UIColor grayColor] int _countComponents =…
L. Kvri
  • 1,456
  • 4
  • 23
  • 41
2
votes
1 answer

Managed WinRT components + virtual methods

I am creating composable WinRT component in C# and trying to add virtual method definition: namespace FooComponent { [EnableComposition] public class Foo { public virtual void Bar() { } } } I've got an error from winmd export utility…
controlflow
  • 6,667
  • 1
  • 31
  • 55
2
votes
2 answers

How to convert a flex mx component to AIR?

I have a flex component that is using mostly mx and actionscript code. I am using it fine in my AIR application, however, I need to be able to use certain Air libraries within this component, so I need to make it Air 'aware' or compatible. For…
Scott Szretter
  • 3,938
  • 11
  • 57
  • 76
1 2 3
99
100